diff options
author | aidarsamer <aidarsamer@ydb.tech> | 2023-03-27 14:49:17 +0300 |
---|---|---|
committer | aidarsamer <aidarsamer@ydb.tech> | 2023-03-27 14:49:17 +0300 |
commit | 934283096f076db57a5b153562c9614aa2b6d761 (patch) | |
tree | b5da80c81318e617e897cf4a024d42ac22a2bcdd | |
parent | ee85675ff7a98c734339c4363733b7b2389418e0 (diff) | |
download | ydb-934283096f076db57a5b153562c9614aa2b6d761.tar.gz |
Fix workload retries calculation
-rw-r--r-- | ydb/public/lib/ydb_cli/commands/ydb_workload.cpp | 10 |
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; } |