Summary:
Only used as temperature high bound for current code, may
increase with more temperatures added.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/10044
Test Plan: ci
Reviewed By: siying
Differential Revision:
D36633410
Pulled By: jay-zhuang
fbshipit-source-id:
eecdfa7623c31778c31d789902eacf78aad7b482
ASSERT_EQ(size, 0);
size = GetSstSizeHelper(Temperature::kCold);
ASSERT_GT(size, 0);
+
+ // kLastTemperature is an invalid temperature
+ options.bottommost_temperature = Temperature::kLastTemperature;
+ s = TryReopen(options);
+ ASSERT_TRUE(s.IsIOError());
}
TEST_F(DBTest2, LastLevelStatistics) {
kHot = 0x04,
kWarm = 0x08,
kCold = 0x0C,
+ kLastTemperature,
};
// The control option of how the cache tiers will be used. Currently rocksdb