You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
leveldb::DestroyDB() exits early if the target directory doesn't exist or is empty. In this case it does not delete the directory itself. If the target directory is non-empty, then after deleting the contents the function deletes the directory itself. This seems inconsistent.
A trivial fix appears to be to insert env->DeleteDir(dbname); just before the early exit.
The text was updated successfully, but these errors were encountered:
Env's that filtered out dot files ("." and "..") would return an
empty vector of children causing DestroyDB to do nothing. This fixesgoogle#215
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172501335
Original issue 209 created by jsbell@chromium.org on 2013-10-11T18:17:28.000Z:
leveldb::DestroyDB() exits early if the target directory doesn't exist or is empty. In this case it does not delete the directory itself. If the target directory is non-empty, then after deleting the contents the function deletes the directory itself. This seems inconsistent.
A trivial fix appears to be to insert env->DeleteDir(dbname); just before the early exit.
The text was updated successfully, but these errors were encountered: