more tests for libdb btree page split on zero index
authorTom Yu <tlyu@mit.edu>
Thu, 7 Feb 2008 07:07:06 +0000 (07:07 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 7 Feb 2008 07:07:06 +0000 (07:07 +0000)
commit010a7773a51edec7dc977340aec4bb92b0f9a721
tree9b673675ef191384a478c19cd03c45765bead0bf
parentb1d03de332d2f10e20a1f5a49cef77171749bd24
more tests for libdb btree page split on zero index

Enhance btree debugging output somewhat to limit key printout to the
key length if the key is not null-terminated.

Add additional test case for the zero-index page split bug; test case
can create a corrupted btree database with records unreachable by
random access but reachable by sequential access.  Requires
recompiling with CPPFLAGS='-DDEBUG -DDEBUG_IDX0SPLIT' to correctly
model mpool page reuse that would be present in production conditions.
(CPPFLAGS=-DDEBUG would otherwise explicitly overwrite the contents of
reused pages.)

ticket: new
target_version: 1.6.4
tags: pullup
component: krb5-kdc

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20222 dc483132-0cff-0310-8789-dd5450dbe970
src/plugins/kdb/db2/libdb2/btree/bt_debug.c
src/plugins/kdb/db2/libdb2/mpool/mpool.c
src/plugins/kdb/db2/libdb2/test/run.test