The attached patch fixes the BTREE_BUILD_STATS build. Looks like65c5fcd353a859da9e61bfb2b92a99f12937de3b broke this. That commit wasmade back in January, so no backpatch is required.
-- Peter Geoghegan