File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,44 @@ class DbSlice;
149
149
150
150
// This is a stub implementation for non-linux platforms.
151
151
namespace dfly {
152
+
153
+ // Manages offloaded values
154
+ class TieredStorageV2 {
155
+ class ShardOpManager ;
156
+
157
+ const static size_t kMinValueSize = tiering::kPageSize / 2 ;
158
+
159
+ public:
160
+ explicit TieredStorageV2 (DbSlice* db_slice) {
161
+ }
162
+
163
+ TieredStorageV2 (TieredStorageV2&& other) = delete ;
164
+ TieredStorageV2 (const TieredStorageV2& other) = delete ;
165
+
166
+ std::error_code Open (std::string_view path) {
167
+ }
168
+
169
+ void Close () {
170
+ }
171
+
172
+ // Read offloaded value. It must be of external type
173
+ util::fb2::Future<std::string> Read (std::string_view key, const PrimeValue& value) {
174
+ return {};
175
+ }
176
+
177
+ // Stash value. Sets IO_PENDING flag and unsets it on error or when finished
178
+ void Stash (std::string_view key, PrimeValue* value) {
179
+ }
180
+
181
+ // Delete value. Must either have pending IO or be offloaded (of external type)
182
+ void Delete (std::string_view key, PrimeValue* value) {
183
+ }
184
+
185
+ TieredStatsV2 GetStats () {
186
+ return TieredStatsV2{};
187
+ }
188
+ };
189
+
152
190
class TieredStorage {
153
191
public:
154
192
static constexpr size_t kMinBlobLen = size_t (-1 ); // infinity.
You can’t perform that action at this time.
0 commit comments