mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
0bc5013e30
git-svn-id: file:///svn/toku/tokudb@48076 c7de825b-a66e-492c-adef-691d508d4ae1
49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
|
|
#ident "$Id$"
|
|
#ident "Copyright (c) 2010 Tokutek Inc. All rights reserved."
|
|
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
|
|
|
|
#include "test.h"
|
|
#include "includes.h"
|
|
#include "toku_os.h"
|
|
#include "checkpoint.h"
|
|
|
|
#define TESTDIR __SRCFILE__ ".dir"
|
|
#define FILENAME "test0.ft"
|
|
|
|
#include "test-ft-txns.h"
|
|
|
|
static void test_5123(void) {
|
|
TOKULOGGER logger;
|
|
CACHETABLE ct;
|
|
test_setup(&logger, &ct);
|
|
|
|
int r;
|
|
|
|
toku_log_xbegin(logger, NULL, false, (TXNID) 1, TXNID_NONE);
|
|
toku_log_xbegin(logger, NULL, false, (TXNID) 3, TXNID_NONE);
|
|
toku_log_xbegin(logger, NULL, false, (TXNID) 2, TXNID_NONE);
|
|
|
|
toku_log_xcommit(logger, NULL, false, NULL, (TXNID) 2);
|
|
|
|
toku_logger_close_rollback(logger);
|
|
|
|
toku_cachetable_close(&ct);
|
|
// "Crash"
|
|
r = toku_logger_close(&logger);
|
|
CKERR(r);
|
|
ct = NULL;
|
|
logger = NULL;
|
|
|
|
// "Recover"
|
|
test_setup_and_recover(&logger, &ct);
|
|
|
|
shutdown_after_recovery(&logger, &ct);
|
|
}
|
|
|
|
int test_main (int argc, const char *argv[]) {
|
|
default_parse_args(argc, argv);
|
|
test_5123();
|
|
return 0;
|
|
}
|