mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
Avoid an extra call to block_for in db::filter_for_query.
(cherry picked from commit 8db6d6bd57)
This commit is contained in:
committed by
Mergify
parent
3b0a161d14
commit
a8114ab91c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user