Wrong number of levels is Invalid argument now, not corruption
This commit is contained in:
parent
6291020284
commit
1ed2404f27
@ -3397,7 +3397,7 @@ TEST(DBTest, DBOpen_Change_NumLevels) {
|
|||||||
opts.create_if_missing = false;
|
opts.create_if_missing = false;
|
||||||
opts.num_levels = 2;
|
opts.num_levels = 2;
|
||||||
s = DB::Open(opts, dbname, &db);
|
s = DB::Open(opts, dbname, &db);
|
||||||
ASSERT_TRUE(strstr(s.ToString().c_str(), "Corruption") != nullptr);
|
ASSERT_TRUE(strstr(s.ToString().c_str(), "Invalid argument") != nullptr);
|
||||||
ASSERT_TRUE(db == nullptr);
|
ASSERT_TRUE(db == nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user