Fix clang build in db_compaction_test

Summary:
Fix CLANG build error caused by type mismatch. Changed type to
size_t.

Test Plan: Clang build and make check

Reviewers: sdong

Reviewed By: sdong

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D52413
This commit is contained in:
Venkatesh Radhakrishnan 2015-12-29 16:44:12 -08:00
parent c9e2490bc6
commit 7238be090e

View File

@ -1208,7 +1208,7 @@ TEST_F(DBCompactionTest, DeleteFileRange) {
target_size *= options.max_bytes_for_level_multiplier; target_size *= options.max_bytes_for_level_multiplier;
} }
int32_t old_num_files = CountFiles(); size_t old_num_files = CountFiles();
std::string begin_string = Key(1000); std::string begin_string = Key(1000);
std::string end_string = Key(2000); std::string end_string = Key(2000);
Slice begin(begin_string); Slice begin(begin_string);
@ -1243,7 +1243,7 @@ TEST_F(DBCompactionTest, DeleteFileRange) {
deleted_count2++; deleted_count2++;
} }
ASSERT_GT(deleted_count2, deleted_count); ASSERT_GT(deleted_count2, deleted_count);
int32_t new_num_files = CountFiles(); size_t new_num_files = CountFiles();
ASSERT_GT(old_num_files, new_num_files); ASSERT_GT(old_num_files, new_num_files);
} }