diff options
| author | Pieter Wuille <[email protected]> | 2013-11-10 19:19:30 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-11-10 19:21:03 +0100 |
| commit | f76c122e2eac8ef66f69d142231bd33c88a24c50 (patch) | |
| tree | d2f910390e55aef857023812fbdaefdd66cd99ff /src/db.cpp | |
| parent | Merge pull request #3211 (diff) | |
| parent | Cleanup code using forward declarations. (diff) | |
| download | discoin-f76c122e2eac8ef66f69d142231bd33c88a24c50.tar.xz discoin-f76c122e2eac8ef66f69d142231bd33c88a24c50.zip | |
Merge pull request #2767
51ed9ec Cleanup code using forward declarations. (Brandon Dahler)
Diffstat (limited to 'src/db.cpp')
| -rw-r--r-- | src/db.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/db.cpp b/src/db.cpp index 7e58ff45f..a286d9f72 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -3,19 +3,24 @@ // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "chainparams.h" #include "db.h" -#include "util.h" -#include "hash.h" + #include "addrman.h" -#include <boost/filesystem.hpp> -#include <boost/filesystem/fstream.hpp> -#include <openssl/rand.h> +#include "hash.h" +#include "protocol.h" +#include "util.h" + +#include <inttypes.h> +#include <stdint.h> #ifndef WIN32 -#include "sys/stat.h" +#include <sys/stat.h> #endif +#include <boost/filesystem.hpp> +#include <boost/version.hpp> +#include <openssl/rand.h> + using namespace std; using namespace boost; @@ -430,7 +435,7 @@ bool CDB::Rewrite(const string& strFile, const char* pszSkip) void CDBEnv::Flush(bool fShutdown) { - int64 nStart = GetTimeMillis(); + int64_t nStart = GetTimeMillis(); // Flush log data to the actual data file // on all files that are not in use LogPrint("db", "Flush(%s)%s\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started"); @@ -459,7 +464,7 @@ void CDBEnv::Flush(bool fShutdown) else mi++; } - LogPrint("db", "DBFlush(%s)%s ended %15"PRI64d"ms\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started", GetTimeMillis() - nStart); + LogPrint("db", "DBFlush(%s)%s ended %15"PRId64"ms\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started", GetTimeMillis() - nStart); if (fShutdown) { char** listp; |