We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64127b3 commit 8602a1eCopy full SHA for 8602a1e
src/wallet/db.cpp
@@ -126,11 +126,16 @@ void BerkeleyEnvironment::Close()
126
}
127
128
129
+ FILE* error_file = nullptr;
130
+ dbenv->get_errfile(&error_file);
131
+
132
int ret = dbenv->close(0);
133
if (ret != 0)
134
LogPrintf("BerkeleyEnvironment::Close: Error %d closing database environment: %s\n", ret, DbEnv::strerror(ret));
135
if (!fMockDb)
136
DbEnv((u_int32_t)0).remove(strPath.c_str(), 0);
137
138
+ if (error_file) fclose(error_file);
139
140
141
void BerkeleyEnvironment::Reset()
0 commit comments