Summary:
.. so that appropriate implementations can return temperature information from GetChildrenFileAttributes
Pull Request resolved: https://github.com/facebook/rocksdb/pull/12965
Test Plan: just an API placeholder for now
Reviewed By: anand1976
Differential Revision:
D61748199
Pulled By: pdillinger
fbshipit-source-id:
b457e324cb451e836611a0bf630c3da0f30a8abf
kRoundRobin = 0x4,
};
-// Temperature of a file. Used to pass to FileSystem for a different
-// placement and/or coding.
-// Reserve some numbers in the middle, in case we need to insert new tier
-// there.
-enum class Temperature : uint8_t {
- kUnknown = 0,
- kHot = 0x04,
- kWarm = 0x08,
- kCold = 0x0C,
- kLastTemperature,
-};
-
struct FileTemperatureAge {
Temperature temperature = Temperature::kUnknown;
uint64_t age = 0;
#include "rocksdb/port_defs.h"
#include "rocksdb/status.h"
#include "rocksdb/thread_status.h"
+#include "rocksdb/types.h"
#ifdef _WIN32
// Windows API macro interference
// Size of file in bytes
uint64_t size_bytes;
+
+ // EXPERIMENTAL - only provided by some implementations
+ Temperature temperature = Temperature::kUnknown;
};
Env();
kNormal,
};
+// Temperature of a file. Used to pass to FileSystem for a different
+// placement and/or coding.
+// Reserve some numbers in the middle, in case we need to insert new tier
+// there.
+enum class Temperature : uint8_t {
+ kUnknown = 0,
+ kHot = 0x04,
+ kWarm = 0x08,
+ kCold = 0x0C,
+ kLastTemperature,
+};
+
} // namespace ROCKSDB_NAMESPACE