summaryrefslogtreecommitdiff
path: root/src/meta
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-12-20 17:19:45 -0500
committerKeith Bostic <keith@wiredtiger.com>2013-12-20 17:19:45 -0500
commit6c1dbabfef51debbe76fa9bd2fd9e09fc23f9e11 (patch)
treeaf79fcae23507b0430f0c61232071d5578e8bcda /src/meta
parent13d100cee6f4c9d3d5b21956fe988131244f94bd (diff)
downloadmongo-6c1dbabfef51debbe76fa9bd2fd9e09fc23f9e11.tar.gz
__open_directory_sync can sync the wrong directory if the application
specifies an absolute path name. Close #801.
Diffstat (limited to 'src/meta')
-rw-r--r--src/meta/meta_turtle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/meta/meta_turtle.c b/src/meta/meta_turtle.c
index 24bea16366b..e076a5b08dc 100644
--- a/src/meta/meta_turtle.c
+++ b/src/meta/meta_turtle.c
@@ -70,7 +70,7 @@ __metadata_load_hot_backup(WT_SESSION_IMPL *session)
WT_DECL_ITEM(key);
WT_DECL_ITEM(value);
WT_DECL_RET;
- const char *path;
+ char *path;
fp = NULL;
path = NULL;
@@ -216,7 +216,7 @@ __wt_turtle_read(WT_SESSION_IMPL *session, const char *key, const char **valuep)
WT_DECL_ITEM(buf);
WT_DECL_RET;
int match;
- const char *path;
+ char *path;
*valuep = NULL;
@@ -274,7 +274,8 @@ __wt_turtle_update(
FILE *fp;
WT_DECL_RET;
int vmajor, vminor, vpatch;
- const char *path, *version;
+ const char *version;
+ char *path;
fp = NULL;
path = NULL;