aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-18 02:49:50 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-19 20:46:52 -0400
commitffe8b77a617efd802a9d4ba7e42b163fbd9a250b (patch)
tree38bef9570c2b71b299cd5d54bfb6f178ce59cf32 /src/db.h
parent94e34fa0adb818baacdcb6408f0a92e07f3ce7df (diff)
Further CDBEnv encapsulation work.
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
index 7af4d5e1cd..abc58c4b1e 100644
--- a/src/db.h
+++ b/src/db.h
@@ -42,6 +42,8 @@ private:
public:
mutable CCriticalSection cs_db;
DbEnv dbenv;
+ std::map<std::string, int> mapFileUseCount;
+ std::map<std::string, Db*> mapDb;
CDBEnv();
~CDBEnv();
@@ -51,6 +53,8 @@ public:
void CheckpointLSN(std::string strFile);
void SetDetach(bool fDetachDB_) { fDetachDB = fDetachDB_; }
+ void CloseDb(const std::string& strFile);
+
DbTxn *TxnBegin(int flags=DB_TXN_WRITE_NOSYNC)
{
DbTxn* ptxn = NULL;