mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
refs #5542 add toku_ft_layer_init/destroy to ftdump
git-svn-id: file:///svn/toku/tokudb@48491 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
97ad349826
commit
7c1d2ba0a3
1 changed files with 5 additions and 1 deletions
|
@ -510,13 +510,16 @@ main (int argc, const char *const argv[]) {
|
|||
}
|
||||
if (argc != 1) return usage(arg0);
|
||||
|
||||
int r = toku_ft_layer_init();
|
||||
invariant_zero(r);
|
||||
|
||||
const char *n = argv[0];
|
||||
int f = open(n, O_RDWR + O_BINARY); assert(f>=0);
|
||||
FT ft;
|
||||
// create a cachefile for the header
|
||||
toku_cachetable_create(&ct, 1<<25, (LSN){0}, 0);
|
||||
CACHEFILE cf = NULL;
|
||||
int r = toku_cachetable_openfd (&cf, ct, f, n);
|
||||
r = toku_cachetable_openfd (&cf, ct, f, n);
|
||||
assert(r==0);
|
||||
dump_header(f, &ft, cf);
|
||||
if (interactive) {
|
||||
|
@ -583,5 +586,6 @@ main (int argc, const char *const argv[]) {
|
|||
dump_node_wrapper, &info, true, true);
|
||||
}
|
||||
toku_ft_free(ft);
|
||||
toku_ft_layer_destroy();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue