mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Report how long DBFlush took.
This commit is contained in:
parent
f1e7570755
commit
53d0e6dd6a
@ -289,6 +289,7 @@ bool CDB::Rewrite(const string& strFile, const char* pszSkip)
|
||||
|
||||
void DBFlush(bool fShutdown)
|
||||
{
|
||||
int64 nStart = GetTimeMillis();
|
||||
// Flush log data to the actual data file
|
||||
// on all files that are not in use
|
||||
printf("DBFlush(%s)%s\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started");
|
||||
@ -318,6 +319,7 @@ void DBFlush(bool fShutdown)
|
||||
else
|
||||
mi++;
|
||||
}
|
||||
printf("DBFlush(%s)%s ended %15"PRI64d"ms\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started", GetTimeMillis() - nStart);
|
||||
if (fShutdown)
|
||||
{
|
||||
char** listp;
|
||||
|
Loading…
Reference in New Issue
Block a user