Skip to content

Commit bb238ba

Browse files
authored
chore(tiering): Fix MacOs build (#2913)
1 parent 64d963d commit bb238ba

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/server/tiered_storage.h

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,44 @@ class DbSlice;
149149

150150
// This is a stub implementation for non-linux platforms.
151151
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+
152190
class TieredStorage {
153191
public:
154192
static constexpr size_t kMinBlobLen = size_t(-1); // infinity.

0 commit comments

Comments
 (0)