CDB::CDB() : Add initializer for fReadOnly member.
authorCryptoManiac <balthazar@yandex.ru>
Mon, 2 May 2016 18:22:03 +0000 (21:22 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Mon, 2 May 2016 18:22:03 +0000 (21:22 +0300)
src/db.cpp

index e082dbd..eb86627 100644 (file)
@@ -205,7 +205,7 @@ void CDBEnv::CheckpointLSN(string strFile)
 
 
 CDB::CDB(const char *pszFile, const char* pszMode) :
-    pdb(NULL), activeTxn(NULL)
+    pdb(NULL), activeTxn(NULL), fReadOnly(true)
 {
     int ret;
     if (pszFile == NULL)