Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions include/nudb/impl/posix_file.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ flags(file_mode mode)
#endif
break;
}

#ifdef O_NOATIME
// Avoid updating the file's "last access time" with every
// read, if that's an option.
result.first |= O_NOATIME;
#endif

return result;
}

Expand Down