aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruzhas <uzhas@ydb.tech>2023-09-05 18:34:55 +0300
committeruzhas <uzhas@ydb.tech>2023-09-05 20:03:05 +0300
commit2fa5f05ca5559646c5f729dfc6a5d4290d679636 (patch)
tree768ff6cd511b04f8a47f0a30dbc65b551d33f0f9
parent9e483e88e90499466fc3fbfd9e85371c771e6651 (diff)
downloadydb-2fa5f05ca5559646c5f729dfc6a5d4290d679636.tar.gz
simplify code to avoid coverity issue use_after_move
-rw-r--r--ydb/core/kqp/runtime/kqp_read_actor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ydb/core/kqp/runtime/kqp_read_actor.cpp b/ydb/core/kqp/runtime/kqp_read_actor.cpp
index 5e8d9a16d8..00d7629357 100644
--- a/ydb/core/kqp/runtime/kqp_read_actor.cpp
+++ b/ydb/core/kqp/runtime/kqp_read_actor.cpp
@@ -692,8 +692,7 @@ public:
if (newShard->HasRanges()) {
newShards.push_back(std::move(newShard));
}
- }
- if (state->HasPoints()) {
+ } else if (state->HasPoints()) {
while (pointIndex < points.size()) {
int intersection = ComparePointAndRange(
points[pointIndex].GetCells(),