summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/src/Freeze/Util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Freeze/Util.cpp b/cpp/src/Freeze/Util.cpp
index 73ef47cb4eb..17ad78e03aa 100644
--- a/cpp/src/Freeze/Util.cpp
+++ b/cpp/src/Freeze/Util.cpp
@@ -30,7 +30,7 @@ Freeze::handleDbException(const DbException& dx,
#if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR == 2)
(dx.get_errno() == ENOMEM);
#else
- (dx.get_errno() == DB_BUFFER_SMALL);
+ (dx.get_errno() == DB_BUFFER_SMALL || dx.get_errno() == ENOMEM);
#endif
if(bufferSmallException && (dbKey.get_size() > dbKey.get_ulen()))
@@ -60,7 +60,7 @@ Freeze::handleDbException(const DbException& dx,
#if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR == 2)
(dx.get_errno() == ENOMEM);
#else
- (dx.get_errno() == DB_BUFFER_SMALL);
+ (dx.get_errno() == DB_BUFFER_SMALL || dx.get_errno() == ENOMEM);
#endif
bool resized = false;