diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-12-12 12:03:04 -0500 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-12-12 12:03:04 -0500 |
commit | 28c22de9b812daeffa630656818da6ec5411a7da (patch) | |
tree | a3b5142c2144ead6aafb62dd71baf0657296e014 /cpp/include/Freeze/Map.h | |
parent | Fixed bug #2546 (diff) | |
download | ice-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.h | 12 |
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) { |