diff options
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/FreezeScript/DumpDB.cpp | 2 | ||||
-rwxr-xr-x | cpp/src/FreezeScript/transformdb.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/FreezeScript/DumpDB.cpp b/cpp/src/FreezeScript/DumpDB.cpp index 5f4b2175bc7..c868e4e9000 100755 --- a/cpp/src/FreezeScript/DumpDB.cpp +++ b/cpp/src/FreezeScript/DumpDB.cpp @@ -494,7 +494,7 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator // Open the database environment and start a transaction. // { - u_int32_t flags = 0; + u_int32_t flags = DB_THREAD | DB_CREATE | DB_INIT_TXN | DB_INIT_MPOOL; dbEnv.open(dbEnvName.c_str(), flags, FREEZE_SCRIPT_DB_MODE); } diff --git a/cpp/src/FreezeScript/transformdb.cpp b/cpp/src/FreezeScript/transformdb.cpp index 384f6357096..b0e7da96127 100755 --- a/cpp/src/FreezeScript/transformdb.cpp +++ b/cpp/src/FreezeScript/transformdb.cpp @@ -753,10 +753,10 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator // DB_THREAD is for compatibility with Freeze (the catalog) // { - u_int32_t flags = DB_THREAD; + u_int32_t flags = DB_THREAD | DB_CREATE | DB_INIT_TXN | DB_INIT_MPOOL; if(catastrophicRecover) { - flags |= DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_RECOVER_FATAL; + flags |= DB_INIT_LOG | DB_RECOVER_FATAL; } dbEnv.open(dbEnvName.c_str(), flags, FREEZE_SCRIPT_DB_MODE); } |