diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Freeze/dbmap/Client.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/test/Freeze/dbmap/Client.cpp b/cpp/test/Freeze/dbmap/Client.cpp index 1983096d7a6..c528d18c7e8 100644 --- a/cpp/test/Freeze/dbmap/Client.cpp +++ b/cpp/test/Freeze/dbmap/Client.cpp @@ -16,6 +16,7 @@ #include <Freeze/Freeze.h> #include <TestCommon.h> #include <ByteIntMap.h> +#include <Freeze/TransactionHolder.h> #include <algorithm> @@ -162,12 +163,14 @@ public: { try { + TransactionHolder txHolder(_connection); for(ByteIntMap::iterator p = _map.begin(); p != _map.end(); ++p) { p.set(p->second + 1); _map.erase(p); } break; // for(;;) + txHolder.commit(); } catch(const DeadlockException&) { |