summaryrefslogtreecommitdiff
path: root/cpp/src/IceDB/IceDB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceDB/IceDB.cpp')
-rw-r--r--cpp/src/IceDB/IceDB.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/IceDB/IceDB.cpp b/cpp/src/IceDB/IceDB.cpp
index 85dd9b1cde2..8f4d5316909 100644
--- a/cpp/src/IceDB/IceDB.cpp
+++ b/cpp/src/IceDB/IceDB.cpp
@@ -269,6 +269,11 @@ Txn::mtxn() const
return _mtxn;
}
+ReadOnlyTxn::~ReadOnlyTxn()
+{
+ // Out of line to avoid weak vtable
+}
+
ReadOnlyTxn::ReadOnlyTxn(const Env& env) :
Txn(env, MDB_RDONLY)
{
@@ -290,6 +295,11 @@ ReadOnlyTxn::renew()
}
}
+ReadWriteTxn::~ReadWriteTxn()
+{
+ // Out of line to avoid weak vtable
+}
+
ReadWriteTxn::ReadWriteTxn(const Env& env) :
Txn(env, 0)
{
@@ -496,4 +506,3 @@ IceDB::getMapSize(int configValue)
return ((configValue <= 0) ? defaultMapSize : configValue) * 1024 * 1024;
}
-