mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
Fix signed-unsigned compare error
This commit is contained in:
parent
f6272e3055
commit
2d3d63597a
|
@ -304,7 +304,7 @@ TEST(CuckooBuilderTest, FailWhenSameKeyInserted) {
|
||||||
ASSERT_OK(cuckoo_builder.status());
|
ASSERT_OK(cuckoo_builder.status());
|
||||||
cuckoo_builder.Add(Slice(key_to_reuse1), Slice(value));
|
cuckoo_builder.Add(Slice(key_to_reuse1), Slice(value));
|
||||||
ASSERT_OK(cuckoo_builder.status());
|
ASSERT_OK(cuckoo_builder.status());
|
||||||
ASSERT_EQ(cuckoo_builder.NumEntries(), 1);
|
ASSERT_EQ(cuckoo_builder.NumEntries(), 1U);
|
||||||
cuckoo_builder.Add(Slice(key_to_reuse2), Slice(value));
|
cuckoo_builder.Add(Slice(key_to_reuse2), Slice(value));
|
||||||
ASSERT_TRUE(cuckoo_builder.status().IsCorruption());
|
ASSERT_TRUE(cuckoo_builder.status().IsCorruption());
|
||||||
cuckoo_builder.Abandon();
|
cuckoo_builder.Abandon();
|
||||||
|
|
Loading…
Reference in a new issue