diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2014-12-18 17:35:01 +0100 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2014-12-18 17:35:01 +0100 |
commit | 18386ed7fc9bb1a6a5dd950a324d29e244f43309 (patch) | |
tree | 313d1bd54a2ac13d48d1d1d7db695199bc92603c | |
parent | b6dd42cb84850ef63d4907f7a303ba5a7eec5cdf (diff) | |
download | persistence-client-library-18386ed7fc9bb1a6a5dd950a324d29e244f43309.tar.gz |
Write through for files
-rw-r--r-- | src/persistence_client_library_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/persistence_client_library_file.c b/src/persistence_client_library_file.c index 8a74a85..a93fa8d 100644 --- a/src/persistence_client_library_file.c +++ b/src/persistence_client_library_file.c @@ -255,8 +255,8 @@ int pclFileOpenRegular(PersistenceInfo_s* dbContext, const char* resource_id, ch if(strstr(dbPath, WTPREFIX) != NULL) { - // if it's a write through resource, add the O_SYNC and O_DIRECT flag to prevent caching - handle = open(dbPath, flags); + // if it's a write through resource, add the O_SYNC flag to prevent caching + handle = open(dbPath, flags | O_SYNC ); cacheStatus = 0; } else |