Commit 7448027d authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Cleanup temp files from tmp dir, not log dir. Fix #2783. close[t:2783]

git-svn-id: file:///svn/toku/tokudb@21828 c7de825b-a66e-492c-adef-691d508d4ae1
parent a35dbbbb
...@@ -399,7 +399,7 @@ int toku_loader_abort(DB_LOADER *loader) ...@@ -399,7 +399,7 @@ int toku_loader_abort(DB_LOADER *loader)
int toku_loader_cleanup_temp_files(DB_ENV *env) { int toku_loader_cleanup_temp_files(DB_ENV *env) {
int result; int result;
struct dirent *de; struct dirent *de;
char * dir = env->i->real_data_dir; char * dir = env->i->real_tmp_dir;
DIR *d = opendir(dir); DIR *d = opendir(dir);
if (d==0) { if (d==0) {
result = errno; goto exit; result = errno; goto exit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment