diff options
| author | Jeff Garzik <[email protected]> | 2012-05-22 17:45:00 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-22 17:45:00 -0400 |
| commit | 0134a1c08ce237b41470e62841af193e8a1e9457 (patch) | |
| tree | db38fb1b7343857e7df5c4698e2b9a821be0c36f /src/init.cpp | |
| parent | Merge pull request #1381 from jgarzik/check-deser (diff) | |
| parent | Further CDBEnv encapsulation work. (diff) | |
| download | discoin-0134a1c08ce237b41470e62841af193e8a1e9457.tar.xz discoin-0134a1c08ce237b41470e62841af193e8a1e9457.zip | |
Merge branch 'dbenv' into tmp
Conflicts:
src/db.cpp
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index f5eac511a..c01dc2708 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -56,9 +56,9 @@ void Shutdown(void* parg) { fShutdown = true; nTransactionsUpdated++; - DBFlush(false); + bitdb.Flush(false); StopNode(); - DBFlush(true); + bitdb.Flush(true); boost::filesystem::remove(GetPidFile()); UnregisterWallet(pwalletMain); delete pwalletMain; @@ -335,7 +335,7 @@ bool AppInit2() // ********************************************************* Step 3: parameter-to-internal-flags fDebug = GetBoolArg("-debug"); - fDetachDB = GetBoolArg("-detachdb", false); + bitdb.SetDetach(GetBoolArg("-detachdb", false)); #if !defined(WIN32) && !defined(QT_GUI) fDaemon = GetBoolArg("-daemon"); |