tests/sstable_mutation_test: Don't use moved-from object

Fix a bug introduced in dbbb9e93d and exposed by gcc6 by not using a
moved-from object. Twice.

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
Message-Id: <20170802161033.4213-1-duarte@scylladb.com>
(cherry picked from commit 4c9206ba2f)
This commit is contained in:
Duarte Nunes
2017-08-02 18:10:33 +02:00
committed by Pekka Enberg
parent 4bb6ba6d58
commit 15eefbc434

View File

@@ -821,13 +821,13 @@ SEASTAR_TEST_CASE(test_promoted_index_blocks_are_monotonic) {
m.set_clustered_cell(ck, *s->get_column_definition("v"), cell);
ck = clustering_key::from_exploded(*s, {int32_type->decompose(1), int32_type->decompose(4)});
m.set_clustered_cell(ck, *s->get_column_definition("v"), std::move(cell));
m.set_clustered_cell(ck, *s->get_column_definition("v"), cell);
ck = clustering_key::from_exploded(*s, {int32_type->decompose(1), int32_type->decompose(6)});
m.set_clustered_cell(ck, *s->get_column_definition("v"), std::move(cell));
m.set_clustered_cell(ck, *s->get_column_definition("v"), cell);
ck = clustering_key::from_exploded(*s, {int32_type->decompose(3), int32_type->decompose(9)});
m.set_clustered_cell(ck, *s->get_column_definition("v"), std::move(cell));
m.set_clustered_cell(ck, *s->get_column_definition("v"), cell);
m.partition().apply_row_tombstone(*s, range_tombstone(
clustering_key_prefix::from_exploded(*s, {int32_type->decompose(1)}),