summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/persistence_client_library_file.c4
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