Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykorean committed Mar 14, 2024
1 parent d436e6f commit d3bec2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/compaction/compaction_service_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class CompactionServiceTest : public DBTestBase {

void GenerateTestData(bool move_files_manually = false) {
// Generate 20 files @ L2 Per CF
for (size_t cf_id = 0; cf_id < handles_.size(); cf_id++) {
for (int cf_id = 0; cf_id < static_cast<int>(handles_.size()); cf_id++) {
for (int i = 0; i < 20; i++) {
for (int j = 0; j < 10; j++) {
int key_id = i * 10 + j;
Expand Down Expand Up @@ -220,7 +220,7 @@ class CompactionServiceTest : public DBTestBase {
}

void VerifyTestData() {
for (size_t cf_id = 0; cf_id < handles_.size(); cf_id++) {
for (int cf_id = 0; cf_id < static_cast<int>(handles_.size()); cf_id++) {
for (int i = 0; i < 200; i++) {
auto result = Get(cf_id, Key(i));
if (i % 2) {
Expand Down

0 comments on commit d3bec2d

Please sign in to comment.