diff options
Diffstat (limited to 'cpp/src/Freeze/IndexI.cpp')
-rw-r--r-- | cpp/src/Freeze/IndexI.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cpp/src/Freeze/IndexI.cpp b/cpp/src/Freeze/IndexI.cpp index e8d0cbc86e8..1b6ee29b84e 100644 --- a/cpp/src/Freeze/IndexI.cpp +++ b/cpp/src/Freeze/IndexI.cpp @@ -100,16 +100,9 @@ Freeze::IndexI::untypedFindFirst(const Key& bytes, Int firstN) const } break; // for(;;) } - catch(const DbException& dx) + catch(const DbMemoryException& dx) { - if(dx.get_errno() == DB_BUFFER_SMALL) - { - handleMemoryException(dx, pkey, pdbKey); - } - else - { - throw dx; - } + handleMemoryException(dx, pkey, pdbKey); } } } |