Skip to content

Commit

Permalink
Fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
archang19 committed Jan 9, 2025
1 parent 4462b6e commit 8f176e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db_stress_tool/no_batched_ops_stress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class NonBatchedOpsStressTest : public StressTest {
const int64_t keys_per_thread = max_key / shared->GetNumThreads();
int64_t start = keys_per_thread * thread->tid;
int64_t end = start + keys_per_thread;
const size_t num_keys_verified = static_cast<size_t>(end - start);
uint64_t prefix_to_use =
(FLAGS_prefix_size < 0) ? 1 : static_cast<size_t>(FLAGS_prefix_size);

Expand Down Expand Up @@ -169,6 +170,7 @@ class NonBatchedOpsStressTest : public StressTest {
pre_read_expected_values.push_back(
shared->Get(static_cast<int>(cf), i));
}
assert(pre_read_expected_values.size() == num_keys_verified);

Status s = secondary_db_->TryCatchUpWithPrimary();
if (!s.ok()) {
Expand Down

0 comments on commit 8f176e9

Please sign in to comment.