aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraidarsamer <aidarsamer@ydb.tech>2023-03-27 14:49:17 +0300
committeraidarsamer <aidarsamer@ydb.tech>2023-03-27 14:49:17 +0300
commit934283096f076db57a5b153562c9614aa2b6d761 (patch)
treeb5da80c81318e617e897cf4a024d42ac22a2bcdd
parentee85675ff7a98c734339c4363733b7b2389418e0 (diff)
downloadydb-934283096f076db57a5b153562c9614aa2b6d761.tar.gz
Fix workload retries calculation
-rw-r--r--ydb/public/lib/ydb_cli/commands/ydb_workload.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_workload.cpp b/ydb/public/lib/ydb_cli/commands/ydb_workload.cpp
index 188b1dadc4..c7b2744d65 100644
--- a/ydb/public/lib/ydb_cli/commands/ydb_workload.cpp
+++ b/ydb/public/lib/ydb_cli/commands/ydb_workload.cpp
@@ -136,12 +136,12 @@ void TWorkloadCommand::WorkerFn(int taskId, TWorkloadQueryGenPtr workloadGen, co
// }
break;
}
+ if (retryCount > 0) {
+ TotalRetries += retryCount;
+ WindowRetryCount += retryCount;
+ }
+ retryCount = -1;
}
- if (retryCount > 0) {
- TotalRetries += retryCount;
- WindowRetryCount += retryCount;
- }
- retryCount = -1;
if (it != queryInfoList.end()) {
continue;
}