Merge pull request #1125 from PapaYofen/fix-rm-ldb-bdb

rm ldb and bdb directory
This commit is contained in:
Chris Lu 2019-11-18 19:15:31 -08:00 committed by GitHub
commit be326edc17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,8 @@ func (v *Volume) Destroy() (err error) {
os.Remove(v.FileName() + ".idx")
os.Remove(v.FileName() + ".cpd")
os.Remove(v.FileName() + ".cpx")
os.Remove(v.FileName() + ".ldb")
os.Remove(v.FileName() + ".bdb")
os.RemoveAll(v.FileName() + ".ldb")
os.RemoveAll(v.FileName() + ".bdb")
return
}