Avoid an extra call to block_for in db::filter_for_query.

(cherry picked from commit 8db6d6bd57)
This commit is contained in:
Sergey Zolotukhin
2024-09-27 11:28:17 +02:00
committed by Mergify
parent 3b0a161d14
commit a8114ab91c

View File

@@ -260,7 +260,7 @@ filter_for_query(consistency_level cl,
size_t bf = block_for(erm, cl);
if (read_repair == read_repair_decision::DC_LOCAL) {
bf = std::max(block_for(erm, cl), local_count);
bf = std::max(bf, local_count);
}
if (bf >= live_endpoints.size()) { // RRD.DC_LOCAL + CL.LOCAL or CL.ALL