storage_proxy: don't stop after result with no live rows

mutation_result_merger merges results from different shards and stops as
soon as a shard returned a short read or memory usage on the merging
shard is too high. However, it should never stop unless at least one
live rows is in the merged result.
This commit is contained in:
Paweł Dziepak
2016-12-19 09:49:32 +00:00
parent 74ecd7072a
commit 6db262446f

View File

@@ -3586,7 +3586,7 @@ public:
_partitions.emplace(key, std::move(partitions));
_short_read = partial_result->is_short_read();
if (_memory_accounter.update_and_check(partial_result->memory_usage()) && _short_read_allowed) {
_short_read = query::short_read::yes;
_short_read = _short_read || query::short_read(_row_count > 0);
}
}
reconcilable_result get() && {