diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-05-09 12:35:11 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-05-09 12:35:11 +0200 |
commit | d3e2e1243bb0dae95ce35b0380dd4f8f476b254d (patch) | |
tree | 8779ad6b2059f181770cc07e2437925d7d5d5d04 /storage/tokudb/ft-index/ft/tests/ft-serialize-sub-block-test.cc | |
parent | 229dad1f9b12f8e9f64b6a605bdf8e31c339d018 (diff) | |
parent | 124428a9e28e59f98b25d8ee07b57d264f63cbe4 (diff) | |
download | mariadb-git-d3e2e1243bb0dae95ce35b0380dd4f8f476b254d.tar.gz |
5.5 merge
Diffstat (limited to 'storage/tokudb/ft-index/ft/tests/ft-serialize-sub-block-test.cc')
-rw-r--r-- | storage/tokudb/ft-index/ft/tests/ft-serialize-sub-block-test.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/storage/tokudb/ft-index/ft/tests/ft-serialize-sub-block-test.cc b/storage/tokudb/ft-index/ft/tests/ft-serialize-sub-block-test.cc index ca8c806f04e..47865bfcce7 100644 --- a/storage/tokudb/ft-index/ft/tests/ft-serialize-sub-block-test.cc +++ b/storage/tokudb/ft-index/ft/tests/ft-serialize-sub-block-test.cc @@ -92,9 +92,9 @@ PATENT RIGHTS GRANT: #include "test.h" -// create a brt and put n rows into it -// write the brt to the file -// verify the rows in the brt +// create a ft and put n rows into it +// write the ft to the file +// verify the rows in the ft static void test_sub_block(int n) { if (verbose) printf("%s:%d %d\n", __FUNCTION__, __LINE__, n); @@ -107,14 +107,14 @@ static void test_sub_block(int n) { int error; CACHETABLE ct; - FT_HANDLE brt; + FT_HANDLE ft; int i; unlink(fname); toku_cachetable_create(&ct, 0, ZERO_LSN, NULL_LOGGER); - error = toku_open_ft_handle(fname, true, &brt, nodesize, basementnodesize, compression_method, ct, null_txn, toku_builtin_compare_fun); + error = toku_open_ft_handle(fname, true, &ft, nodesize, basementnodesize, compression_method, ct, null_txn, toku_builtin_compare_fun); assert(error == 0); // insert keys 0, 1, 2, .. (n-1) @@ -124,20 +124,20 @@ static void test_sub_block(int n) { DBT key, val; toku_fill_dbt(&key, &k, sizeof k); toku_fill_dbt(&val, &v, sizeof v); - toku_ft_insert(brt, &key, &val, 0); + toku_ft_insert(ft, &key, &val, 0); assert(error == 0); } // write to the file - error = toku_close_ft_handle_nolsn(brt, 0); + error = toku_close_ft_handle_nolsn(ft, 0); assert(error == 0); - // verify the brt by walking a cursor through the rows - error = toku_open_ft_handle(fname, false, &brt, nodesize, basementnodesize, compression_method, ct, null_txn, toku_builtin_compare_fun); + // verify the ft by walking a cursor through the rows + error = toku_open_ft_handle(fname, false, &ft, nodesize, basementnodesize, compression_method, ct, null_txn, toku_builtin_compare_fun); assert(error == 0); FT_CURSOR cursor; - error = toku_ft_cursor(brt, &cursor, NULL, false, false); + error = toku_ft_cursor(ft, &cursor, NULL, false, false); assert(error == 0); for (i=0; ; i++) { @@ -155,7 +155,7 @@ static void test_sub_block(int n) { toku_ft_cursor_close(cursor); - error = toku_close_ft_handle_nolsn(brt, 0); + error = toku_close_ft_handle_nolsn(ft, 0); assert(error == 0); toku_cachetable_close(&ct); |