~ubuntu-branches/ubuntu/vivid/mariadb-5.5/vivid-proposed

« back to all changes in this revision

Viewing changes to storage/tokudb/ft-index/ft/tests/test-checkpoint-during-rebalance.cc

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-11-14 21:04:24 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20141114210424-xlyna0ozl11647o5
Tags: 5.5.40-0ubuntu0.14.10.1
* SECURITY UPDATE: Update to 5.5.40 to fix security issues (LP: #1391676)
  - CVE-2014-6507
  - CVE-2014-6491
  - CVE-2014-6500
  - CVE-2014-6469
  - CVE-2014-6555
  - CVE-2014-6559
  - CVE-2014-6494
  - CVE-2014-6496
  - CVE-2014-6464
* Add bsdutils as mariadb-server dependency like upstream does in 5.5.40.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
COPYRIGHT NOTICE:
31
31
 
32
 
  TokuDB, Tokutek Fractal Tree Indexing Library.
 
32
  TokuFT, Tokutek Fractal Tree Indexing Library.
33
33
  Copyright (C) 2007-2013 Tokutek, Inc.
34
34
 
35
35
DISCLAIMER:
96
96
#include <ft-cachetable-wrappers.h>
97
97
#include "ft-flusher.h"
98
98
#include "ft-flusher-internal.h"
99
 
#include "checkpoint.h"
 
99
#include "cachetable/checkpoint.h"
100
100
 
101
101
static TOKUTXN const null_txn = 0;
102
 
static DB * const null_db = 0;
103
102
 
104
103
enum { NODESIZE = 1024, KSIZE=NODESIZE-100, TOKU_PSIZE=20 };
105
104
 
175
174
 
176
175
    toku_flusher_thread_set_callback(flusher_callback, &state);
177
176
    
178
 
    toku_cachetable_create(&ct, 500*1024*1024, ZERO_LSN, NULL_LOGGER);
 
177
    toku_cachetable_create(&ct, 500*1024*1024, ZERO_LSN, nullptr);
179
178
    unlink("foo3.ft_handle");
180
179
    unlink("bar3.ft_handle");
181
180
    // note the basement node size is 5 times the node size
266
265
    toku_unpin_ftnode(t->ft, node);
267
266
 
268
267
    
269
 
    struct ftnode_fetch_extra bfe;
270
 
    fill_bfe_for_min_read(&bfe, t->ft);
 
268
    ftnode_fetch_extra bfe;
 
269
    bfe.create_for_min_read(t->ft);
271
270
    toku_pin_ftnode(
272
271
        t->ft, 
273
272
        node_root,
322
321
    //
323
322
    // now pin the root, verify that the state is what we expect
324
323
    //
325
 
    fill_bfe_for_full_read(&bfe, c_ft->ft);
 
324
    bfe.create_for_full_read(c_ft->ft);
326
325
    toku_pin_ftnode(
327
326
        c_ft->ft, 
328
327
        node_root,