Skip to content

Commit

Permalink
Merge pull request #37 from AntelopeIO/sm_end_addr
Browse files Browse the repository at this point in the history
fix globally registered segment manager end address
  • Loading branch information
spoonincode authored Jan 16, 2024
2 parents 9d1c472 + 2d6ffd7 commit 09c4548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pinnable_mapped_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pinnable_mapped_file::pinnable_mapped_file(const std::filesystem::path& dir, boo
}
std::byte* start = (std::byte*)_segment_manager;
assert(_segment_manager_map.find(start) == _segment_manager_map.end());
_segment_manager_map[start] = start + _database_size;
_segment_manager_map[start] = start + _segment_manager->get_size();
}

void pinnable_mapped_file::setup_copy_on_write_mapping() {
Expand Down

0 comments on commit 09c4548

Please sign in to comment.