wallet: Close wallet env lock file

Close .walletlock file when a BerkeleyEnvironment is deleted.
This commit is contained in:
João Barbosa
2019-01-31 00:05:18 +00:00
parent 8602a1e6ae
commit 2f8b8f479b
3 changed files with 9 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ int RaiseFileDescriptorLimit(int nMinFD);
void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length);
bool RenameOver(fs::path src, fs::path dest);
bool LockDirectory(const fs::path& directory, const std::string lockfile_name, bool probe_only=false);
void UnlockDirectory(const fs::path& directory, const std::string& lockfile_name);
bool DirIsWritable(const fs::path& directory);
/** Release all directory locks. This is used for unit testing only, at runtime