Try to comment code to make it compiling on Windows

This commit is contained in:
Siarhei Fedartsou 2024-06-20 19:21:09 +02:00
parent a5f7467ccf
commit 0118555e6d
2 changed files with 622 additions and 622 deletions

File diff suppressed because it is too large Load Diff

View File

@ -42,20 +42,20 @@ MMapMemoryAllocator::MMapMemoryAllocator(const storage::StorageConfig &config)
auto updatable_files = storage.GetUpdatableFiles(); auto updatable_files = storage.GetUpdatableFiles();
files.insert(files.end(), updatable_files.begin(), updatable_files.end()); files.insert(files.end(), updatable_files.begin(), updatable_files.end());
for (const auto &file : files) // for (const auto &file : files)
{ // {
if (std::filesystem::exists(file.second)) // if (std::filesystem::exists(file.second))
{ // {
std::unique_ptr<storage::BaseDataLayout> layout = // std::unique_ptr<storage::BaseDataLayout> layout =
std::make_unique<storage::TarDataLayout>(); // std::make_unique<storage::TarDataLayout>();
boost::iostreams::mapped_file_source mapped_memory_file; // boost::iostreams::mapped_file_source mapped_memory_file;
auto data = util::mmapFile<char>(file.second, mapped_memory_file).data(); // auto data = util::mmapFile<char>(file.second, mapped_memory_file).data();
mapped_memory_files.emplace_back(std::move(mapped_memory_file)); // mapped_memory_files.emplace_back(std::move(mapped_memory_file));
storage::populateLayoutFromFile(file.second, *layout); // storage::populateLayoutFromFile(file.second, *layout);
allocated_regions.emplace_back(storage::SharedDataIndex::AllocatedRegion{ // allocated_regions.emplace_back(storage::SharedDataIndex::AllocatedRegion{
const_cast<char *>(data), std::move(layout)}); // const_cast<char *>(data), std::move(layout)});
} // }
} // }
index = storage::SharedDataIndex{std::move(allocated_regions)}; index = storage::SharedDataIndex{std::move(allocated_regions)};
} }