Skip to content

Commit

Permalink
remember to unmap when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
finnschiermer committed Nov 4, 2022
1 parent e166d5d commit 1ed5e16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/realm/group_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ void GroupWriter::MapWindow::sync()
void GroupWriter::MapWindow::unmap()
{
encryption_flush_private_cache();
#if REALM_PLATFORM_APPLE
sync();

This comment has been minimized.

Copy link
@astigsen

astigsen Nov 4, 2022

Contributor

It would be good to add a comment here on why sync is needed specifically for Apple platforms.

#endif
m_map.unmap();
}

char* GroupWriter::MapWindow::translate(ref_type ref)
Expand Down

0 comments on commit 1ed5e16

Please sign in to comment.