/* -*- mode: C; c-basic-offset: 4 -*- */ #ident "Copyright (c) 2008 Tokutek Inc. All rights reserved." #include "includes.h" #include "test.h" #include static TOKUTXN const null_txn = 0; static DB * const null_db = 0; static void test_flat (void) { char fname[]= __FILE__ ".brt"; u_int64_t limit=30000; unlink(fname); CACHETABLE ct; int r = toku_brt_create_cachetable(&ct, 0, ZERO_LSN, NULL_LOGGER); assert(r==0); BRT t; r = toku_open_brt(fname, 1, &t, 1<<12, ct, null_txn, toku_builtin_compare_fun, null_db); assert(r==0); u_int64_t i; for (i=0; i