/* -*- mode: C; c-basic-offset: 4 -*- */ #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." /* Recover an env. The logs are in argv[1]. The new database is created in the cwd. */ // Test: // cd ../src/tests/tmpdir // ../../../newbrt/recover ../dir.test_log2.c.tdb #include #include #include #include #include "log_header.h" #include "log-internal.h" #include "cachetable.h" #include "key.h" int main (int argc, char *argv[]) { const char *dir; int r; int entrycount=0; assert(argc==2); dir = argv[1]; int n_logfiles; char **logfiles; r = toku_logger_find_logfiles(dir, &n_logfiles, &logfiles); if (r!=0) exit(1); int i; toku_recover_init(); for (i=0; i