summaryrefslogtreecommitdiff
path: root/cpp/include/Freeze/Map.h
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-12-12 12:03:04 -0500
committerBernard Normier <bernard@zeroc.com>2007-12-12 12:03:04 -0500
commit28c22de9b812daeffa630656818da6ec5411a7da (patch)
treea3b5142c2144ead6aafb62dd71baf0657296e014 /cpp/include/Freeze/Map.h
parentFixed bug #2546 (diff)
downloadice-28c22de9b812daeffa630656818da6ec5411a7da.tar.bz2
ice-28c22de9b812daeffa630656818da6ec5411a7da.tar.xz
ice-28c22de9b812daeffa630656818da6ec5411a7da.zip
Fixed bug #2557 (closing database within transaction)
Diffstat (limited to 'cpp/include/Freeze/Map.h')
-rw-r--r--cpp/include/Freeze/Map.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/include/Freeze/Map.h b/cpp/include/Freeze/Map.h
index 0cee7e7736d..00be9db6fac 100644
--- a/cpp/include/Freeze/Map.h
+++ b/cpp/include/Freeze/Map.h
@@ -77,6 +77,7 @@ private:
friend class MapHelperI;
friend class IteratorHelperI;
friend class SharedDb;
+ friend class MapDb;
std::string _name;
MapIndexI* _impl;
@@ -140,6 +141,8 @@ public:
virtual const MapIndexBasePtr&
index(const std::string&) const = 0;
+ virtual void
+ closeDb() = 0;
};
@@ -1095,6 +1098,15 @@ public:
{
_helper->destroy();
}
+
+
+ //
+ // closeDb closes the underlying Berkeley DB database
+ //
+ void closeDb()
+ {
+ _helper->closeDb();
+ }
iterator find(const key_type& key)
{