Commit a22fa2be authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4896], remove grabbing of ydb lock before freeing loader's resources

git-svn-id: file:///svn/toku/tokudb@44047 c7de825b-a66e-492c-adef-691d508d4ae1
parent d31c9045
......@@ -415,9 +415,7 @@ int toku_loader_close(DB_LOADER *loader)
r = ft_loader_close_and_redirect(loader);
}
}
toku_ydb_lock();
free_loader(loader);
toku_ydb_unlock();
if (r==0)
(void) __sync_fetch_and_add(&STATUS_VALUE(LOADER_CLOSE), 1);
else
......@@ -439,9 +437,7 @@ int toku_loader_abort(DB_LOADER *loader)
if (!(loader->i->loader_flags & LOADER_USE_PUTS) ) {
r = toku_ft_loader_abort(loader->i->ft_loader, TRUE);
}
toku_ydb_lock();
free_loader(loader);
toku_ydb_unlock();
return r;
}
......
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