diff options
author | George Hazan <ghazan@miranda.im> | 2018-06-20 17:56:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-06-20 17:56:58 +0300 |
commit | 9b60e6be3c41466e2beae22ef4cfd6f776f27b0f (patch) | |
tree | 9caa1d1fccaabb66816808e79691c5cbfaefabdf /plugins/Dbx_mdbx/src | |
parent | f559ca1427b16c1d9192f554490759a753c3bf3b (diff) |
FILE_SHARE_READ still must be set even in the exclusive mode
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r-- | plugins/Dbx_mdbx/src/libmdbx/src/osal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/libmdbx/src/osal.c b/plugins/Dbx_mdbx/src/libmdbx/src/osal.c index 1a57d750b3..33c755af99 100644 --- a/plugins/Dbx_mdbx/src/libmdbx/src/osal.c +++ b/plugins/Dbx_mdbx/src/libmdbx/src/osal.c @@ -431,7 +431,8 @@ int mdbx_openfile(const char *pathname, int flags, mode_t mode, break; case O_RDWR: DesiredAccess = GENERIC_READ | GENERIC_WRITE; - ShareMode = exclusive ? 0 : (FILE_SHARE_READ | FILE_SHARE_WRITE); + ShareMode = + exclusive ? FILE_SHARE_READ : (FILE_SHARE_READ | FILE_SHARE_WRITE); break; } |