vmware / splinterdb

High Performance Embedded Key-Value Store
https://splinterdb.org
Apache License 2.0
680 stars 57 forks source link

Provide a way to call btree_print_tree() to print all BTrees under a given trunk node. #533

Open gapisback opened 1 year ago

gapisback commented 1 year ago

Existing routine btree_print_tree() works well to print the entire BTree and all its sub-trees from a starting BTree root node. Provide an interface to call this directly from a specific Trunk node.

This will be useful for debugging tree manipulations, especially to see the result of a flush and compact operation.