1
0
Fork 0

hopefully fix NOATIME

This commit is contained in:
jsteemann 2016-11-28 16:11:36 +01:00
parent 6a86321fde
commit 1a4ab1d0be
2 changed files with 3 additions and 9 deletions

View File

@ -144,12 +144,9 @@ static bool CheckCrcMarker(TRI_df_marker_t const* marker, char const* end) {
}
////////////////////////////////////////////////////////////////////////////////
/// @brief creates a new datafile
///
/// returns the file descriptor or -1 if the file cannot be created
////////////////////////////////////////////////////////////////////////////////
static int CreateDatafile(std::string const& filename, TRI_voc_size_t maximalSize) {
TRI_ERRORBUF;
@ -1824,11 +1821,8 @@ TRI_datafile_t* TRI_datafile_t::openHelper(std::string const& filename, bool ign
TRI_ASSERT(!filename.empty());
TRI_voc_fid_t fid = GetNumericFilenamePart(filename.c_str());
// ..........................................................................
// attempt to open a datafile file
// ..........................................................................
int fd = TRI_OPEN(filename.c_str(), O_RDWR | TRI_O_CLOEXEC | TRI_NOATIME);
int fd = TRI_OPEN(filename.c_str(), O_RDWR | TRI_O_CLOEXEC);
if (fd < 0) {
TRI_SYSTEM_ERROR();

View File

@ -299,7 +299,7 @@
#define TRI_DIR_SEPARATOR_STR "/"
#define TRI_O_CLOEXEC O_CLOEXEC
#define TRI_NOATIME O_NOATIME
#define TRI_NOATIME 0
#define TRI_CHDIR ::chdir
#define TRI_CLOSE ::close
@ -442,7 +442,7 @@
#define TRI_DIR_SEPARATOR_STR "/"
#define TRI_O_CLOEXEC O_CLOEXEC
#define TRI_NOATIME O_NOATIME
#define TRI_NOATIME 0
#define TRI_CHDIR ::chdir
#define TRI_CLOSE ::close