if(check_node_depth(bt2, &record, (unsigned)0) < 0) /* Record in leaf node just after insertion point */
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Programmer:  Quincey Koziol <koziol@ncsa.uiuc.edu>
 *              Tuesday, February  1, 2005
 */
#include "h5test.h"
/*
 * This file needs to access private datatypes from the H5B2 package.
 * This file also needs to access the v2 B-tree testing code.
 */
#define H5B2_FRIEND     /*suppress error about including H5B2pkg      */
#define H5B2_TESTING
#include "H5B2pkg.h"
/* Other private headers that this test requires */
#include "H5CXprivate.h"        /* API Contexts                         */
#include "H5Iprivate.h"
const char *FILENAME[] = {
    "btree2",
    "btree2_tmp",
    NULL
};
#define INSERT_SPLIT_ROOT_NREC  63
#define INSERT_SPLIT_ROOT_NREC_REC  64
#define INSERT_MANY             (1000 * 1000)
#define INSERT_MANY_REC         (2700 * 1000)
#define FIND_MANY               (INSERT_MANY / 100)
#define FIND_MANY_REC           (INSERT_MANY_REC / 100)
#define FIND_NEIGHBOR           2000
#define DELETE_SMALL            20
#define DELETE_MEDIUM           200
#define DELETE_LARGE            2000
/* Testing parameters */
typedef struct bt2_test_param_t {
    hbool_t reopen_btree;               /* Whether to re-open the B-tree during the test */
} bt2_test_param_t;