Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasil Pashov committed Apr 3, 2024
1 parent f75da08 commit f65733d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion cpp/arcticdb/storage/file/mapped_file_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <arcticdb/storage/storage_options.hpp>
#include <arcticdb/codec/codec.hpp>
#include <arcticdb/entity/serialized_key.hpp>

namespace arcticdb::storage::file {

MappedFileStorage::MappedFileStorage(const LibraryPath &lib, OpenMode mode, Config conf) :
Expand Down
2 changes: 1 addition & 1 deletion cpp/arcticdb/storage/single_file_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct formatter<arcticdb::storage::KeyData> {

template<typename FormatContext>
auto format(const arcticdb::storage::KeyData &k, FormatContext &ctx) const {
return format_to(ctx.out(), "{}:{}", k.key_offset_, k.key_size_);
return fmt::format_to(ctx.out(), "{}:{}", k.key_offset_, k.key_size_);
}
};

Expand Down
5 changes: 2 additions & 3 deletions cpp/arcticdb/util/memory_mapped_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
#include <arcticdb/log/log.hpp>

#ifdef WIN32

#include <folly/gen/Base.h>
#include "Windows.h"
#include "winerror.h"

namespace arcticdb {

Expand All @@ -18,6 +17,7 @@ namespace arcticdb {

public:
MemoryMappedFile() = default;
ARCTICDB_NO_MOVE_OR_COPY(MemoryMappedFile)

size_t get_file_size(const std::string& file_path) {
LARGE_INTEGER size;
Expand Down Expand Up @@ -122,7 +122,6 @@ namespace arcticdb {
};

}//namespace arcticdb

#else
#include <iostream>
#include <sys/mman.h>
Expand Down

0 comments on commit f65733d

Please sign in to comment.