mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
TestPGLog.cc: fix -Wsign-compare
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
b1dd699adb
commit
3b60f5f69d
@ -1939,12 +1939,12 @@ TEST_F(PGLogTest, filter_log_1) {
|
||||
|
||||
// Some should be removed
|
||||
log.filter_log(pgid, *osdmap, hit_set_namespace);
|
||||
EXPECT_LE(log.log.size(), total);
|
||||
EXPECT_LE(log.log.size(), (size_t)total);
|
||||
|
||||
// If we filter a second time, there should be the same total
|
||||
total = log.log.size();
|
||||
log.filter_log(pgid, *osdmap, hit_set_namespace);
|
||||
EXPECT_EQ(log.log.size(), total);
|
||||
EXPECT_EQ(log.log.size(), (size_t)total);
|
||||
|
||||
// Increase pg_num as if there would be a split
|
||||
int new_pg_num = pg_num * 16;
|
||||
@ -1961,7 +1961,7 @@ TEST_F(PGLogTest, filter_log_1) {
|
||||
|
||||
// We should have fewer entries after a filter
|
||||
log.filter_log(pgid, *osdmap, hit_set_namespace);
|
||||
EXPECT_LE(log.log.size(), total);
|
||||
EXPECT_LE(log.log.size(), (size_t)total);
|
||||
|
||||
// Make sure all internal entries are retained
|
||||
int count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user