mutation_partition_view: do not expect counter shards to be sorted

This commit is contained in:
Paweł Dziepak
2017-09-01 09:56:54 +01:00
parent 84edb5a1f2
commit b540516e5e

View File

@@ -73,8 +73,9 @@ atomic_cell read_atomic_cell(atomic_cell_variant cv)
// TODO: a lot of copying for something called view
counter_cell_builder ccb; // we know the final number of shards
for (auto csv : ccv.shards()) {
ccb.add_shard(counter_shard(csv));
ccb.add_maybe_unsorted_shard(counter_shard(csv));
}
ccb.sort_and_remove_duplicates();
return ccb.build(_created_at);
}
atomic_cell operator()(ser::counter_cell_update_view& ccv) const {