box: improve error message raised on hash index replace failure
Old: "Failed to allocate 2147483648 bytes in hash_table for key" New: "Failed to allocate 16384 bytes in hash_table for key" ERRINJ_INDEX_ALLOC cannot be used to test this error, because it fails earlier, so ERRINJ_HASH_INDEX_REPLACE is introduced. Follow-up #3594 NO_DOC=minor NO_CHANGELOG=minor (cherry picked from commit 0a8043d1)
Showing
- src/box/memtx_hash.cc 2 additions, 4 deletionssrc/box/memtx_hash.cc
- src/lib/core/errinj.h 1 addition, 0 deletionssrc/lib/core/errinj.h
- test/box/errinj.result 1 addition, 0 deletionstest/box/errinj.result
- test/box/errinj_index.result 12 additions, 0 deletionstest/box/errinj_index.result
- test/box/errinj_index.test.lua 5 additions, 0 deletionstest/box/errinj_index.test.lua
Loading
Please register or sign in to comment