]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add bttest unlink page command
authorTom Yu <tlyu@mit.edu>
Mon, 8 Aug 2016 12:50:40 +0000 (08:50 -0400)
committerTom Yu <tlyu@mit.edu>
Tue, 16 Aug 2016 19:25:03 +0000 (15:25 -0400)
commitf7e4078de12cb77fa55e3f6aaa8137c1ced2e796
tree216d91a50c97f05f5dd67f341c957e82fe8231d4
parent590af488351316b6f4ddb70ce67a2730b4fcc40d
Add bttest unlink page command

To enable testing of recursive btree traversal, add an unlink page
command to the bttest program (used for debugging the libdb2 btree
back end).  This new bttest command can unlink a specified page
number, or it can search for and unlink a page that has both a left
and a right sibling.  (The user can specify whether to find an
internal page or a leaf page.)

This unlinking makes the page inaccessible to conventional sequential
traversal, simulating some btree corruption that has been seen in the
field.

ticket: 8476
src/plugins/kdb/db2/libdb2/btree/bt_delete.c
src/plugins/kdb/db2/libdb2/btree/extern.h
src/plugins/kdb/db2/libdb2/libdb.exports
src/plugins/kdb/db2/libdb2/test/btree.tests/main.c