Skip to content

Commit dd5be01

Browse files
committed
Fix lint warning
1 parent 0e9f00d commit dd5be01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

db_stress_tool/no_batched_ops_stress.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ class NonBatchedOpsStressTest : public StressTest {
187187
s = secondary_db_->Get(options, column_families_[cf], key,
188188
&from_db);
189189

190+
assert(!pre_read_expected_values.empty() &&
191+
static_cast<size_t>(i - start) <
192+
pre_read_expected_values.size());
190193
VerifyValueRange(static_cast<int>(cf), i, options, shared, from_db,
191194
/* msg_prefix */ "Secondary get verification", s,
192195
pre_read_expected_values[i - start]);
@@ -373,7 +376,7 @@ class NonBatchedOpsStressTest : public StressTest {
373376
}
374377

375378
void ContinuouslyVerifyDb(ThreadState* thread) const override {
376-
// Currently this method gets calleds even when
379+
// Currently this method gets called even when
377380
// FLAGS_continuous_verification_interval == 0 as long as
378381
// FLAGS_verify_db_one_in > 0. Previously, this was not causing a problem in
379382
// the crash tests since test_secondary was always equal to 0, and thus we

0 commit comments

Comments
 (0)