summaryrefslogtreecommitdiff
path: root/storage/tokudb/PerconaFT/ft/logger/recover.cc
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2017-03-06 21:50:42 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2017-03-06 21:50:42 +0200
commitc4f3e64c23fe7f7fd18c0a79f87f9771df15fe9f (patch)
tree19228b51e768f8f6137e765b3cadc4fa9aa67540 /storage/tokudb/PerconaFT/ft/logger/recover.cc
parent29c776cfd1e560846e394f39d79ae43ff7d70c61 (diff)
parentdc1c9e69d0fbb531a25cb7cf957c1477135eae70 (diff)
downloadmariadb-git-c4f3e64c23fe7f7fd18c0a79f87f9771df15fe9f.tar.gz
Merge branch 'bb-10.0-vicentiu' into 10.0mariadb-10.0.30
Diffstat (limited to 'storage/tokudb/PerconaFT/ft/logger/recover.cc')
-rw-r--r--storage/tokudb/PerconaFT/ft/logger/recover.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/tokudb/PerconaFT/ft/logger/recover.cc b/storage/tokudb/PerconaFT/ft/logger/recover.cc
index a9c30c0e37a..9eaa56bdc53 100644
--- a/storage/tokudb/PerconaFT/ft/logger/recover.cc
+++ b/storage/tokudb/PerconaFT/ft/logger/recover.cc
@@ -987,7 +987,8 @@ static int toku_recover_frename(struct logtype_frename *l, RECOVER_ENV renv) {
return 1;
if (old_exist && !new_exist &&
- (toku_os_rename(old_iname_full.get(), new_iname_full.get()) == -1 ||
+ (!toku_create_subdirs_if_needed(new_iname_full.get()) ||
+ toku_os_rename(old_iname_full.get(), new_iname_full.get()) == -1 ||
toku_fsync_directory(old_iname_full.get()) == -1 ||
toku_fsync_directory(new_iname_full.get()) == -1))
return 1;