diff options
author | sueloverso <sue@mongodb.com> | 2015-05-22 09:51:25 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-05-25 16:44:20 +1000 |
commit | 3cf5e4c185f4fe141c506a3a45401daf48018499 (patch) | |
tree | 8f3d5bf4732ec7f73dbca6db3e018d34ec0f6822 | |
parent | 1351a73c104b194748431f69b0ab1d98a2160947 (diff) | |
download | mongo-3cf5e4c185f4fe141c506a3a45401daf48018499.tar.gz |
Merge pull request #1991 from wiredtiger/open-directory-full-path
Sync the log directory when creating log files, not its parent
(cherry picked from commit 99021aec5414b717d5731ec6aa15eef8c86d50ed)
-rw-r--r-- | src/os_posix/os_open.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/os_posix/os_open.c b/src/os_posix/os_open.c index 18804183c84..5fa2e83415b 100644 --- a/src/os_posix/os_open.c +++ b/src/os_posix/os_open.c @@ -16,16 +16,9 @@ static int __open_directory(WT_SESSION_IMPL *session, char *path, int *fd) { WT_DECL_RET; - char *dir; - if ((dir = strrchr(path, '/')) == NULL) - path = (char *)"."; - else - *dir = '\0'; WT_SYSCALL_RETRY(((*fd = open(path, O_RDONLY, 0444)) == -1 ? 1 : 0), ret); - if (dir != NULL) - *dir = '/'; if (ret != 0) WT_RET_MSG(session, ret, "%s: open_directory", path); return (ret); |