Skip to content

Commit b5f3a1d

Browse files
authored
fix: macOS build (#6065)
1 parent 3a8ff25 commit b5f3a1d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/server/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set_property(SOURCE dfly_main.cc APPEND PROPERTY COMPILE_DEFINITIONS
2626

2727
if (WITH_TIERING)
2828
SET(TX_LINUX_SRCS tiering/disk_storage.cc tiering/op_manager.cc
29-
tiering/small_bins.cc tiering/external_alloc.cc tiering/serialized_map.cc tiering/decoders.cc)
29+
tiering/small_bins.cc tiering/external_alloc.cc)
3030

3131
add_executable(dfly_bench dfly_bench.cc)
3232
cxx_link(dfly_bench dfly_parser_lib fibers2 absl::random_random redis_lib)
@@ -63,6 +63,7 @@ add_library(dfly_transaction db_slice.cc blocking_controller.cc
6363
common.cc journal/journal.cc journal/types.cc journal/journal_slice.cc
6464
server_state.cc table.cc transaction.cc tx_base.cc
6565
serializer_commons.cc journal/serializer.cc journal/executor.cc journal/streamer.cc
66+
tiering/serialized_map.cc tiering/decoders.cc
6667
${TX_LINUX_SRCS} acl/acl_log.cc slowlog.cc channel_store.cc)
6768

6869

src/server/tiered_storage.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ class TieredStorage {
188188
std::function<void(io::Result<std::string>)> readf) {
189189
}
190190

191+
template <typename D, typename F>
192+
void Read(DbIndex dbid, std::string_view key, const PrimeValue& value, const D& decoder, F&& f) {
193+
}
194+
191195
template <typename T>
192196
TResult<T> Modify(DbIndex dbid, std::string_view key, const PrimeValue& value,
193197
std::function<T(std::string*)> modf) {

0 commit comments

Comments
 (0)