diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-09-26 12:27:22 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-09-26 12:27:22 +0000 |
commit | b2cb2c0a93c14ce61b03e418b64562544163b88f (patch) | |
tree | 4f456fc9522cd2912f0b2e00be976ab2bffc424e /cpp/src/Freeze/IndexI.cpp | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=481 (diff) | |
download | ice-b2cb2c0a93c14ce61b03e418b64562544163b88f.tar.bz2 ice-b2cb2c0a93c14ce61b03e418b64562544163b88f.tar.xz ice-b2cb2c0a93c14ce61b03e418b64562544163b88f.zip |
Bug 490 - Need to check for DB_BUFFER_SMALL to resize keys
Diffstat (limited to 'cpp/src/Freeze/IndexI.cpp')
-rw-r--r-- | cpp/src/Freeze/IndexI.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/Freeze/IndexI.cpp b/cpp/src/Freeze/IndexI.cpp index 1b6ee29b84e..e8d0cbc86e8 100644 --- a/cpp/src/Freeze/IndexI.cpp +++ b/cpp/src/Freeze/IndexI.cpp @@ -100,9 +100,16 @@ Freeze::IndexI::untypedFindFirst(const Key& bytes, Int firstN) const } break; // for(;;) } - catch(const DbMemoryException& dx) + catch(const DbException& dx) { - handleMemoryException(dx, pkey, pdbKey); + if(dx.get_errno() == DB_BUFFER_SMALL) + { + handleMemoryException(dx, pkey, pdbKey); + } + else + { + throw dx; + } } } } |