Commit 53d281eb authored by John Esmet's avatar John Esmet

FT-241 Use #pragma once as a header guard

parent 28a62801
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef BACKGROUND_JOB_MANAGER_H
#define BACKGROUND_JOB_MANAGER_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -130,5 +130,3 @@ void bjm_remove_background_job(BACKGROUND_JOB_MANAGER bjm); ...@@ -130,5 +130,3 @@ void bjm_remove_background_job(BACKGROUND_JOB_MANAGER bjm);
// has completed, bjm_add_background_job returns an error. // has completed, bjm_add_background_job returns an error.
// //
void bjm_wait_for_jobs_to_finish(BACKGROUND_JOB_MANAGER bjm); void bjm_wait_for_jobs_to_finish(BACKGROUND_JOB_MANAGER bjm);
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef BLOCK_ALLOCATOR_H
#define BLOCK_ALLOCATOR_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -222,6 +222,3 @@ void block_allocator_merge_blockpairs_into (uint64_t d, struct block_alloc ...@@ -222,6 +222,3 @@ void block_allocator_merge_blockpairs_into (uint64_t d, struct block_alloc
// dst must be large enough. // dst must be large enough.
// No blocks may overlap. // No blocks may overlap.
// Rationale: This is exposed so it can be tested by a glass box tester. Otherwise it would be static (file-scope) function inside block_allocator.c // Rationale: This is exposed so it can be tested by a glass box tester. Otherwise it would be static (file-scope) function inside block_allocator.c
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef BLOCKTABLE_H
#define BLOCKTABLE_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -171,6 +171,3 @@ enum {RESERVED_BLOCKNUM_NULL =0, ...@@ -171,6 +171,3 @@ enum {RESERVED_BLOCKNUM_NULL =0,
RESERVED_BLOCKNUM_DESCRIPTOR =2, RESERVED_BLOCKNUM_DESCRIPTOR =2,
RESERVED_BLOCKNUMS}; RESERVED_BLOCKNUMS};
#endif
...@@ -88,7 +88,6 @@ PATENT RIGHTS GRANT: ...@@ -88,7 +88,6 @@ PATENT RIGHTS GRANT:
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#pragma once #pragma once
#include <util/mempool.h> #include <util/mempool.h>
...@@ -384,4 +383,3 @@ class bn_data { ...@@ -384,4 +383,3 @@ class bn_data {
uint32_t key_data_size, uint32_t val_data_size, bool all_keys_same_length, uint32_t key_data_size, uint32_t val_data_size, bool all_keys_same_length,
uint32_t fixed_klpair_length); uint32_t fixed_klpair_length);
}; };
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TokuDB_cachetable_internal_h
#define TokuDB_cachetable_internal_h
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -90,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -90,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -654,5 +653,3 @@ struct cachetable { ...@@ -654,5 +653,3 @@ struct cachetable {
char *env_dir; char *env_dir;
}; };
#endif // End of header guardian.
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef CACHETABLE_H
#define CACHETABLE_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -639,5 +639,3 @@ void toku_pair_list_set_lock_size(uint32_t num_locks); ...@@ -639,5 +639,3 @@ void toku_pair_list_set_lock_size(uint32_t num_locks);
// layer. // layer.
__attribute__((const,nonnull)) __attribute__((const,nonnull))
bool toku_ctpair_is_write_locked(PAIR pair); bool toku_ctpair_is_write_locked(PAIR pair);
#endif /* CACHETABLE_H */
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_CHECKPOINT_H
#define TOKU_CHECKPOINT_H
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2009-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2009-2013 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." #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."
#ident "$Id$" #ident "$Id$"
...@@ -200,6 +200,3 @@ typedef struct { ...@@ -200,6 +200,3 @@ typedef struct {
} CHECKPOINT_STATUS_S, *CHECKPOINT_STATUS; } CHECKPOINT_STATUS_S, *CHECKPOINT_STATUS;
void toku_checkpoint_get_status(CACHETABLE ct, CHECKPOINT_STATUS stat); void toku_checkpoint_get_status(CACHETABLE ct, CHECKPOINT_STATUS stat);
#endif
...@@ -85,12 +85,11 @@ PATENT RIGHTS GRANT: ...@@ -85,12 +85,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#pragma once
#include <db.h> #include <db.h>
#include <string.h> #include <string.h>
......
...@@ -86,13 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,13 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_COMPRESS_H
#define TOKU_COMPRESS_H
#include <zlib.h> #include <zlib.h>
#include <db.h> #include <db.h>
...@@ -131,5 +129,3 @@ void toku_decompress (Bytef *dest, uLongf destLen, ...@@ -131,5 +129,3 @@ void toku_decompress (Bytef *dest, uLongf destLen,
// This function can decompress data compressed with either zlib or quicklz compression methods (calling toku_compress(), which puts an appropriate header on so we know which it is.) // This function can decompress data compressed with either zlib or quicklz compression methods (calling toku_compress(), which puts an appropriate header on so we know which it is.)
// Requires: destLen is equal to the actual decompressed size of the data. // Requires: destLen is equal to the actual decompressed size of the data.
// Requires: The source must have been properly compressed. // Requires: The source must have been properly compressed.
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FT_CACHETABLE_WRAPPERS_H
#define FT_CACHETABLE_WRAPPERS_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -192,5 +192,3 @@ void toku_unpin_ftnode_read_only(FT ft, FTNODE node); ...@@ -192,5 +192,3 @@ void toku_unpin_ftnode_read_only(FT ft, FTNODE node);
// Effect: Swaps pair values of two pinned nodes // Effect: Swaps pair values of two pinned nodes
void toku_ftnode_swap_pair_values(FTNODE nodea, FTNODE nodeb); void toku_ftnode_swap_pair_values(FTNODE nodea, FTNODE nodeb);
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FT_FLUSHER_INTERNAL_H
#define FT_FLUSHER_INTERNAL_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -236,5 +236,3 @@ default_pick_child_after_split(FT h, ...@@ -236,5 +236,3 @@ default_pick_child_after_split(FT h,
int childnumb, int childnumb,
void *extra); void *extra);
#endif // End of header guardian.
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FT_FLUSHER_H
#define FT_FLUSHER_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -251,5 +251,3 @@ int ...@@ -251,5 +251,3 @@ int
toku_ft_hot_optimize(FT_HANDLE ft_h, DBT* left, DBT* right, toku_ft_hot_optimize(FT_HANDLE ft_h, DBT* left, DBT* right,
int (*progress_callback)(void *extra, float progress), int (*progress_callback)(void *extra, float progress),
void *progress_extra, uint64_t* loops_run); void *progress_extra, uint64_t* loops_run);
#endif // End of header guardian.
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FT_INTERNAL_H
#define FT_INTERNAL_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -1229,5 +1229,3 @@ void toku_flusher_thread_set_callback(void (*callback_f)(int, void*), void* extr ...@@ -1229,5 +1229,3 @@ void toku_flusher_thread_set_callback(void (*callback_f)(int, void*), void* extr
int toku_upgrade_subtree_estimates_to_stat64info(int fd, FT h) __attribute__((nonnull)); int toku_upgrade_subtree_estimates_to_stat64info(int fd, FT h) __attribute__((nonnull));
int toku_upgrade_msn_from_root_to_header(int fd, FT h) __attribute__((nonnull)); int toku_upgrade_msn_from_root_to_header(int fd, FT h) __attribute__((nonnull));
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FT_OPS_H
#define FT_OPS_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -362,5 +362,3 @@ void toku_ft_set_direct_io(bool direct_io_on); ...@@ -362,5 +362,3 @@ void toku_ft_set_direct_io(bool direct_io_on);
void toku_ft_set_compress_buffers_before_eviction(bool compress_buffers); void toku_ft_set_compress_buffers_before_eviction(bool compress_buffers);
void toku_note_deserialized_basement_node(bool fixed_key_size); void toku_note_deserialized_basement_node(bool fixed_key_size);
#endif
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef FT_SEARCH_H
#define FT_SEARCH_H
#include "ft/ybt.h" #include "ft/ybt.h"
enum ft_search_direction_e { enum ft_search_direction_e {
...@@ -155,5 +154,3 @@ static inline ft_search_t *ft_search_init(ft_search_t *so, ft_search_compare_fun ...@@ -155,5 +154,3 @@ static inline ft_search_t *ft_search_init(ft_search_t *so, ft_search_compare_fun
static inline void ft_search_finish(ft_search_t *so) { static inline void ft_search_finish(ft_search_t *so) {
toku_destroy_dbt(&so->pivot_bound); toku_destroy_dbt(&so->pivot_bound);
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FT_H
#define FT_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -223,5 +223,3 @@ extern int tokudb_num_envs; ...@@ -223,5 +223,3 @@ extern int tokudb_num_envs;
int toku_keycompare (bytevec key1, ITEMLEN key1len, bytevec key2, ITEMLEN key2len); int toku_keycompare (bytevec key1, ITEMLEN key1len, bytevec key2, ITEMLEN key2len);
int toku_builtin_compare_fun (DB *, const DBT *, const DBT*) __attribute__((__visibility__("default"))); int toku_builtin_compare_fun (DB *, const DBT *, const DBT*) __attribute__((__visibility__("default")));
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FT_LAYOUT_VERSION_H
#define FT_LAYOUT_VERSION_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -130,5 +130,3 @@ enum ft_layout_version_e { ...@@ -130,5 +130,3 @@ enum ft_layout_version_e {
FT_FIRST_LAYOUT_VERSION_WITH_END_TO_END_CHECKSUM = FT_LAYOUT_VERSION_14, FT_FIRST_LAYOUT_VERSION_WITH_END_TO_END_CHECKSUM = FT_LAYOUT_VERSION_14,
FT_FIRST_LAYOUT_VERSION_WITH_BASEMENT_NODES = FT_LAYOUT_VERSION_15, FT_FIRST_LAYOUT_VERSION_WITH_BASEMENT_NODES = FT_LAYOUT_VERSION_15,
}; };
#endif
...@@ -6,9 +6,6 @@ ...@@ -6,9 +6,6 @@
* a message buffer. * a message buffer.
*/ */
#ifndef FT_MSG_H
#define FT_MSG_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -95,6 +92,8 @@ PATENT RIGHTS GRANT: ...@@ -95,6 +92,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -211,5 +210,3 @@ void *ft_msg_get_key(FT_MSG ft_msg); ...@@ -211,5 +210,3 @@ void *ft_msg_get_key(FT_MSG ft_msg);
void *ft_msg_get_val(FT_MSG ft_msg); void *ft_msg_get_val(FT_MSG ft_msg);
enum ft_msg_type ft_msg_get_type(FT_MSG ft_msg); enum ft_msg_type ft_msg_get_type(FT_MSG ft_msg);
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FTTYPES_H
#define FTTYPES_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -194,5 +194,3 @@ typedef void (*remove_ft_ref_callback)(FT, void*); ...@@ -194,5 +194,3 @@ typedef void (*remove_ft_ref_callback)(FT, void*);
typedef void (*on_redirect_callback)(FT_HANDLE, void*); typedef void (*on_redirect_callback)(FT_HANDLE, void*);
#define UU(x) x __attribute__((__unused__)) #define UU(x) x __attribute__((__unused__))
#endif
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2010-2013 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." #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."
#ifndef LE_CURSOR_H
#define LE_CURSOR_H
#include "ft-ops.h" #include "ft-ops.h"
// A leaf entry cursor (LE_CURSOR) is a special type of FT_CURSOR that visits all of the leaf entries in a tree // A leaf entry cursor (LE_CURSOR) is a special type of FT_CURSOR that visits all of the leaf entries in a tree
...@@ -127,5 +126,3 @@ bool toku_le_cursor_is_key_greater_or_equal(LE_CURSOR le_cursor, const DBT *key) ...@@ -127,5 +126,3 @@ bool toku_le_cursor_is_key_greater_or_equal(LE_CURSOR le_cursor, const DBT *key)
// extracts position of le_cursor into estimate. Responsibility of caller to handle // extracts position of le_cursor into estimate. Responsibility of caller to handle
// thread safety. Caller (the indexer), does so by ensuring indexer lock is held // thread safety. Caller (the indexer), does so by ensuring indexer lock is held
void toku_le_cursor_update_estimate(LE_CURSOR le_cursor, DBT* estimate); void toku_le_cursor_update_estimate(LE_CURSOR le_cursor, DBT* estimate);
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_LEAFENTRY_H
#define TOKU_LEAFENTRY_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -90,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -90,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -265,6 +264,3 @@ toku_le_garbage_collect(LEAFENTRY old_leaf_entry, ...@@ -265,6 +264,3 @@ toku_le_garbage_collect(LEAFENTRY old_leaf_entry,
txn_gc_info *gc_info, txn_gc_info *gc_info,
LEAFENTRY *new_leaf_entry, LEAFENTRY *new_leaf_entry,
int64_t * numbytes_delta_p); int64_t * numbytes_delta_p);
#endif /* TOKU_LEAFENTRY_H */
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_DBUFIO_H
#define TOKU_DBUFIO_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include <toku_portability.h>
...@@ -108,5 +108,3 @@ int dbufio_fileset_read (DBUFIO_FILESET bfs, int filenum, void *buf_v, size_t co ...@@ -108,5 +108,3 @@ int dbufio_fileset_read (DBUFIO_FILESET bfs, int filenum, void *buf_v, size_t co
int panic_dbufio_fileset(DBUFIO_FILESET, int error); int panic_dbufio_fileset(DBUFIO_FILESET, int error);
void dbufio_print(DBUFIO_FILESET); void dbufio_print(DBUFIO_FILESET);
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FTLOADER_INTERNAL_H
#define FTLOADER_INTERNAL_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved."
#include <db.h> #include <db.h>
...@@ -362,5 +362,3 @@ int toku_ft_loader_get_error(FTLOADER bl, int *loader_errno); ...@@ -362,5 +362,3 @@ int toku_ft_loader_get_error(FTLOADER bl, int *loader_errno);
void ft_loader_lock_init(FTLOADER bl); void ft_loader_lock_init(FTLOADER bl);
void ft_loader_lock_destroy(FTLOADER bl); void ft_loader_lock_destroy(FTLOADER bl);
void ft_loader_set_fractal_workers_count_from_c(FTLOADER bl); void ft_loader_set_fractal_workers_count_from_c(FTLOADER bl);
#endif // FTLOADER_INTERNAL_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef FTLOADER_H
#define FTLOADER_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -133,5 +133,3 @@ void toku_ft_loader_set_size_factor (uint32_t factor); ...@@ -133,5 +133,3 @@ void toku_ft_loader_set_size_factor (uint32_t factor);
void ft_loader_set_os_fwrite (size_t (*fwrite_fun)(const void*,size_t,size_t,FILE*)); void ft_loader_set_os_fwrite (size_t (*fwrite_fun)(const void*,size_t,size_t,FILE*));
size_t ft_loader_leafentry_size(size_t key_size, size_t val_size, TXNID xid); size_t ft_loader_leafentry_size(size_t key_size, size_t val_size, TXNID xid);
#endif // FTLOADER_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_PQUEUE_H
#define TOKU_PQUEUE_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -121,6 +121,3 @@ void pqueue_free(pqueue_t *q); ...@@ -121,6 +121,3 @@ void pqueue_free(pqueue_t *q);
size_t pqueue_size(pqueue_t *q); size_t pqueue_size(pqueue_t *q);
int pqueue_insert(pqueue_t *q, pqueue_node_t *d); int pqueue_insert(pqueue_t *q, pqueue_node_t *d);
int pqueue_pop(pqueue_t *q, pqueue_node_t **d); int pqueue_pop(pqueue_t *q, pqueue_node_t **d);
#endif //TOKU_PQUEUE_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef LOG_INTERNAL_H
#define LOG_INTERNAL_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -373,5 +373,3 @@ static inline char *fixup_fname(BYTESTRING *f) { ...@@ -373,5 +373,3 @@ static inline char *fixup_fname(BYTESTRING *f) {
fname[f->len]=0; fname[f->len]=0;
return fname; return fname;
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_LOGGGER_H
#define TOKU_LOGGGER_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -129,6 +129,3 @@ static inline void toku_free_FILENUMS(FILENUMS val) { toku_free(val.filenums); } ...@@ -129,6 +129,3 @@ static inline void toku_free_FILENUMS(FILENUMS val) { toku_free(val.filenums); }
int toku_maybe_upgrade_log (const char *env_dir, const char *log_dir, LSN * lsn_of_clean_shutdown, bool * upgrade_in_progress); int toku_maybe_upgrade_log (const char *env_dir, const char *log_dir, LSN * lsn_of_clean_shutdown, bool * upgrade_in_progress);
uint64_t toku_log_upgrade_get_footprint(void); uint64_t toku_log_upgrade_get_footprint(void);
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKULOGCURSOR_H
#define TOKULOGCURSOR_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,12 +87,13 @@ PATENT RIGHTS GRANT: ...@@ -89,12 +87,13 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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 <ft/log_header.h> #include <ft/log_header.h>
struct toku_logcursor; struct toku_logcursor;
typedef struct toku_logcursor *TOKULOGCURSOR; typedef struct toku_logcursor *TOKULOGCURSOR;
...@@ -127,6 +126,3 @@ int toku_logcursor_last(const TOKULOGCURSOR lc, struct log_entry **le); ...@@ -127,6 +126,3 @@ int toku_logcursor_last(const TOKULOGCURSOR lc, struct log_entry **le);
int toku_logcursor_log_exists(const TOKULOGCURSOR lc); int toku_logcursor_log_exists(const TOKULOGCURSOR lc);
void toku_logcursor_print(TOKULOGCURSOR lc); void toku_logcursor_print(TOKULOGCURSOR lc);
#endif // TOKULOGCURSOR_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKULOGFILEMGR_H
#define TOKULOGFILEMGR_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,12 +87,13 @@ PATENT RIGHTS GRANT: ...@@ -89,12 +87,13 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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 <ft/log_header.h> #include <ft/log_header.h>
// this is the basic information we need to keep per logfile // this is the basic information we need to keep per logfile
struct toku_logfile_info { struct toku_logfile_info {
int64_t index; int64_t index;
...@@ -118,6 +117,3 @@ LSN toku_logfilemgr_get_last_lsn(TOKULOGFILEMGR lfm); ...@@ -118,6 +117,3 @@ LSN toku_logfilemgr_get_last_lsn(TOKULOGFILEMGR lfm);
void toku_logfilemgr_update_last_lsn(TOKULOGFILEMGR lfm, LSN lsn); void toku_logfilemgr_update_last_lsn(TOKULOGFILEMGR lfm, LSN lsn);
void toku_logfilemgr_print(TOKULOGFILEMGR lfm); void toku_logfilemgr_print(TOKULOGFILEMGR lfm);
#endif //TOKULOGFILEMGR_H
...@@ -849,8 +849,7 @@ int main (int argc, const char *const argv[]) { ...@@ -849,8 +849,7 @@ int main (int argc, const char *const argv[]) {
pf = fopen(printpath, "w"); assert(pf!=0); pf = fopen(printpath, "w"); assert(pf!=0);
fprintf2(cf, hf, "/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n"); fprintf2(cf, hf, "/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n");
fprintf2(cf, hf, "// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:\n"); fprintf2(cf, hf, "// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:\n");
fprintf(hf, "#ifndef LOG_HEADER_H\n"); fprintf(hf, "#pragma once\n");
fprintf(hf, "#define LOG_HEADER_H\n");
fprintf2(cf, hf, "/* Do not edit this file. This code generated by logformat.c. Copyright (c) 2007-2013 Tokutek Inc. */\n"); fprintf2(cf, hf, "/* Do not edit this file. This code generated by logformat.c. Copyright (c) 2007-2013 Tokutek Inc. */\n");
fprintf2(cf, hf, "#ident \"Copyright (c) 2007-2013 Tokutek Inc. All rights reserved.\"\n"); fprintf2(cf, hf, "#ident \"Copyright (c) 2007-2013 Tokutek Inc. All rights reserved.\"\n");
fprintf2(cf, pf, "#include <stdint.h>\n"); fprintf2(cf, pf, "#include <stdint.h>\n");
...@@ -867,7 +866,6 @@ int main (int argc, const char *const argv[]) { ...@@ -867,7 +866,6 @@ int main (int argc, const char *const argv[]) {
generate_rollbacks(); generate_rollbacks();
generate_log_entry_functions(); generate_log_entry_functions();
generate_logprint(); generate_logprint();
fprintf(hf, "#endif\n");
{ {
int r=fclose(hf); assert(r==0); int r=fclose(hf); assert(r==0);
r=fclose(cf); assert(r==0); r=fclose(cf); assert(r==0);
......
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_LOGGER_H
#define TOKU_LOGGER_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -259,5 +259,3 @@ void toku_logger_get_status(TOKULOGGER logger, LOGGER_STATUS s); ...@@ -259,5 +259,3 @@ void toku_logger_get_status(TOKULOGGER logger, LOGGER_STATUS s);
int toku_get_version_of_logs_on_disk(const char *log_dir, bool *found_any_logs, uint32_t *version_found); int toku_get_version_of_logs_on_disk(const char *log_dir, bool *found_any_logs, uint32_t *version_found);
TXN_MANAGER toku_logger_get_txn_manager(TOKULOGGER logger); TXN_MANAGER toku_logger_get_txn_manager(TOKULOGGER logger);
#endif /* TOKU_LOGGER_H */
...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef QLZ_HEADER
#define QLZ_HEADER
// Fast data compression library // Fast data compression library
// Copyright (C) 2006-2011 Lasse Mikkel Reinhold // Copyright (C) 2006-2011 Lasse Mikkel Reinhold
...@@ -228,6 +228,3 @@ int qlz_get_setting(int setting); ...@@ -228,6 +228,3 @@ int qlz_get_setting(int setting);
#if defined (__cplusplus) #if defined (__cplusplus)
} }
#endif #endif
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef RBUF_H
#define RBUF_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -275,6 +275,3 @@ static inline void rbuf_ma_BYTESTRING (struct rbuf *r, MEMARENA ma, BYTESTRING ...@@ -275,6 +275,3 @@ static inline void rbuf_ma_BYTESTRING (struct rbuf *r, MEMARENA ma, BYTESTRING
assert(bs->data); assert(bs->data);
r->ndone = newndone; r->ndone = newndone;
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKURECOVER_H
#define TOKURECOVER_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -135,5 +135,3 @@ extern int tokudb_recovery_trace; ...@@ -135,5 +135,3 @@ extern int tokudb_recovery_trace;
int toku_recover_lock (const char *lock_dir, int *lockfd); int toku_recover_lock (const char *lock_dir, int *lockfd);
int toku_recover_unlock(int lockfd); int toku_recover_unlock(int lockfd);
#endif // TOKURECOVER_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef ROLLBACK_APPLY_H
#define ROLLBACK_APPLY_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,16 +87,14 @@ PATENT RIGHTS GRANT: ...@@ -89,16 +87,14 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
typedef int(*apply_rollback_item)(TOKUTXN txn, struct roll_entry *item, LSN lsn); typedef int(*apply_rollback_item)(TOKUTXN txn, struct roll_entry *item, LSN lsn);
int toku_commit_rollback_item (TOKUTXN txn, struct roll_entry *item, LSN lsn); int toku_commit_rollback_item (TOKUTXN txn, struct roll_entry *item, LSN lsn);
int toku_abort_rollback_item (TOKUTXN txn, struct roll_entry *item, LSN lsn); int toku_abort_rollback_item (TOKUTXN txn, struct roll_entry *item, LSN lsn);
int toku_rollback_commit(TOKUTXN txn, LSN lsn); int toku_rollback_commit(TOKUTXN txn, LSN lsn);
int toku_rollback_abort(TOKUTXN txn, LSN lsn); int toku_rollback_abort(TOKUTXN txn, LSN lsn);
#endif // ROLLBACK_APPLY_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef ROLLBACK_CT_CALLBACKS_H
#define ROLLBACK_CT_CALLBACKS_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -134,6 +134,3 @@ static inline CACHETABLE_WRITE_CALLBACK get_write_callbacks_for_rollback_log(FT ...@@ -134,6 +134,3 @@ static inline CACHETABLE_WRITE_CALLBACK get_write_callbacks_for_rollback_log(FT
wc.write_extraargs = h; wc.write_extraargs = h;
return wc; return wc;
} }
#endif // ROLLBACK_CT_CALLBACKS_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_ROLLBACK_H
#define TOKU_ROLLBACK_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -196,6 +196,3 @@ void make_rollback_log_empty(ROLLBACK_LOG_NODE log); ...@@ -196,6 +196,3 @@ void make_rollback_log_empty(ROLLBACK_LOG_NODE log);
static inline bool rollback_log_is_unused(ROLLBACK_LOG_NODE log) { static inline bool rollback_log_is_unused(ROLLBACK_LOG_NODE log) {
return (log->txnid.parent_id64 == TXNID_NONE); return (log->txnid.parent_id64 == TXNID_NONE);
} }
#endif // TOKU_ROLLBACK_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_ROLLBACK_LOG_NODE_CACHE_H
#define TOKU_ROLLBACK_LOG_NODE_CACHE_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -115,5 +115,3 @@ class rollback_log_node_cache { ...@@ -115,5 +115,3 @@ class rollback_log_node_cache {
}; };
ENSURE_POD(rollback_log_node_cache); ENSURE_POD(rollback_log_node_cache);
#endif // TOKU_ROLLBACK_LOG_NODE_CACHE_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_SUB_BLOCK_H
#define TOKU_SUB_BLOCK_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,13 +87,14 @@ PATENT RIGHTS GRANT: ...@@ -89,13 +87,14 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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 "compress.h" #include "compress.h"
#include "fttypes.h" #include "fttypes.h"
static const int max_sub_blocks = 8; static const int max_sub_blocks = 8;
static const int target_sub_block_size = 512*1024; static const int target_sub_block_size = 512*1024;
static const int max_basement_nodes = 32; static const int max_basement_nodes = 32;
...@@ -213,6 +212,3 @@ int ...@@ -213,6 +212,3 @@ int
decompress_all_sub_blocks(int n_sub_blocks, struct sub_block sub_block[], unsigned char *compressed_data, unsigned char *uncompressed_data, int num_cores, struct toku_thread_pool *pool); decompress_all_sub_blocks(int n_sub_blocks, struct sub_block sub_block[], unsigned char *compressed_data, unsigned char *uncompressed_data, int num_cores, struct toku_thread_pool *pool);
extern int verbose_decompress_sub_block; extern int verbose_decompress_sub_block;
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef _TOKU_SUB_BLOCK_MAP_H
#define _TOKU_SUB_BLOCK_MAP_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -123,5 +123,3 @@ sub_block_map_deserialize(struct sub_block_map *sbmap, struct rbuf *rbuf) { ...@@ -123,5 +123,3 @@ sub_block_map_deserialize(struct sub_block_map *sbmap, struct rbuf *rbuf) {
sbmap->offset = rbuf_int(rbuf); sbmap->offset = rbuf_int(rbuf);
sbmap->size = rbuf_int(rbuf); sbmap->size = rbuf_int(rbuf);
} }
#endif
...@@ -86,8 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,8 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#include "cachetable-internal.h" #include "cachetable-internal.h"
......
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2010-2013 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." #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."
#ifndef FTLOADER_ERROR_INJECTOR_H
#define FTLOADER_ERROR_INJECTOR_H
#include <portability/toku_atomic.h> #include <portability/toku_atomic.h>
static toku_mutex_t event_mutex = TOKU_MUTEX_INITIALIZER; static toku_mutex_t event_mutex = TOKU_MUTEX_INITIALIZER;
...@@ -224,5 +223,3 @@ static void *my_realloc(void *p, size_t n) { ...@@ -224,5 +223,3 @@ static void *my_realloc(void *p, size_t n) {
} }
return realloc(p, n); return realloc(p, n);
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TEST_FT_TXNS_H
#define TEST_FT_TXNS_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2010-2013 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." #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."
...@@ -179,5 +179,3 @@ static inline void shutdown_after_recovery(TOKULOGGER *loggerp, CACHETABLE *ctp) ...@@ -179,5 +179,3 @@ static inline void shutdown_after_recovery(TOKULOGGER *loggerp, CACHETABLE *ctp)
int r = toku_logger_close(loggerp); int r = toku_logger_close(loggerp);
CKERR(r); CKERR(r);
} }
#endif /* TEST_FT_TXNS_H */
...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -393,4 +395,3 @@ main(int argc, const char *argv[]) { ...@@ -393,4 +395,3 @@ main(int argc, const char *argv[]) {
toku_ft_layer_destroy(); toku_ft_layer_destroy();
return r; return r;
} }
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKUCONST_H
#define TOKUCONST_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -99,10 +99,5 @@ PATENT RIGHTS GRANT: ...@@ -99,10 +99,5 @@ PATENT RIGHTS GRANT:
* root transaction (id 0). * root transaction (id 0).
*/ */
enum {MAX_NESTED_TRANSACTIONS = 253}; enum {MAX_NESTED_TRANSACTIONS = 253};
enum {MAX_TRANSACTION_RECORDS = MAX_NESTED_TRANSACTIONS + 1}; enum {MAX_TRANSACTION_RECORDS = MAX_NESTED_TRANSACTIONS + 1};
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKUTXN_H
#define TOKUTXN_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -221,5 +221,3 @@ bool toku_txn_has_spilled_rollback(TOKUTXN txn); ...@@ -221,5 +221,3 @@ bool toku_txn_has_spilled_rollback(TOKUTXN txn);
uint64_t toku_txn_get_client_id(TOKUTXN txn); uint64_t toku_txn_get_client_id(TOKUTXN txn);
void toku_txn_set_client_id(TOKUTXN txn, uint64_t client_id); void toku_txn_set_client_id(TOKUTXN txn, uint64_t client_id);
#endif //TOKUTXN_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_TXN_CHILD_MANAGER_H
#define TOKU_TXN_CHILD_MANAGER_H
#ident "$Id: rollback.h 49033 2012-10-17 18:48:30Z zardosht $" #ident "$Id: rollback.h 49033 2012-10-17 18:48:30Z zardosht $"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -116,5 +116,3 @@ friend class txn_child_manager_unit_test; ...@@ -116,5 +116,3 @@ friend class txn_child_manager_unit_test;
ENSURE_POD(txn_child_manager); ENSURE_POD(txn_child_manager);
#endif // TOKU_TXN_CHILD_MANAGER_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKUTXN_MANAGER_H
#define TOKUTXN_MANAGER_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -285,5 +285,3 @@ bool toku_txn_manager_txns_exist(TXN_MANAGER mgr); ...@@ -285,5 +285,3 @@ bool toku_txn_manager_txns_exist(TXN_MANAGER mgr);
void toku_txn_manager_increase_last_xid(TXN_MANAGER mgr, uint64_t increment); void toku_txn_manager_increase_last_xid(TXN_MANAGER mgr, uint64_t increment);
TXNID toku_get_youngest_live_list_txnid_for(TXNID xc, const xid_omt_t &snapshot_txnids, const rx_omt_t &referenced_xids); TXNID toku_get_youngest_live_list_txnid_for(TXNID xc, const xid_omt_t &snapshot_txnids, const rx_omt_t &referenced_xids);
#endif // TOKUTXN_MANAGER_H
...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#if !defined(TOKUTXN_STATE_H)
#define TOKUTXN_STATE_H
// this is a separate file so that the hotindexing tests can see the txn states // this is a separate file so that the hotindexing tests can see the txn states
...@@ -101,5 +101,3 @@ enum tokutxn_state { ...@@ -101,5 +101,3 @@ enum tokutxn_state {
TOKUTXN_RETIRED, // txn no longer exists TOKUTXN_RETIRED, // txn no longer exists
}; };
typedef enum tokutxn_state TOKUTXN_STATE; typedef enum tokutxn_state TOKUTXN_STATE;
#endif
...@@ -5,9 +5,6 @@ ...@@ -5,9 +5,6 @@
* ule mechanisms that do not belong in the public interface. * ule mechanisms that do not belong in the public interface.
*/ */
#ifndef TOKU_ULE_INTERNAL_H
#define TOKU_ULE_INTERNAL_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -94,6 +91,8 @@ PATENT RIGHTS GRANT: ...@@ -94,6 +91,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -157,7 +156,3 @@ le_pack(ULE ule, // data to be packed into new leafentry ...@@ -157,7 +156,3 @@ le_pack(ULE ule, // data to be packed into new leafentry
size_t le_memsize_from_ule (ULE ule); size_t le_memsize_from_ule (ULE ule);
void ule_cleanup(ULE ule); void ule_cleanup(ULE ule);
#endif // TOKU_ULE_H
...@@ -6,9 +6,6 @@ ...@@ -6,9 +6,6 @@
* requirements of the nested transaction logic belongs here. * requirements of the nested transaction logic belongs here.
*/ */
#ifndef TOKU_ULE_H
#define TOKU_ULE_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -95,6 +92,8 @@ PATENT RIGHTS GRANT: ...@@ -95,6 +92,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -130,5 +129,3 @@ TXNID uxr_get_txnid(UXRHANDLE uxr); ...@@ -130,5 +129,3 @@ TXNID uxr_get_txnid(UXRHANDLE uxr);
//1 does much slower debugging //1 does much slower debugging
#define GARBAGE_COLLECTION_DEBUG 0 #define GARBAGE_COLLECTION_DEBUG 0
#endif // TOKU_ULE_H
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef WBUF_H
#define WBUF_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -332,6 +332,3 @@ static inline void wbuf_FILENUMS (struct wbuf *w, FILENUMS v) { ...@@ -332,6 +332,3 @@ static inline void wbuf_FILENUMS (struct wbuf *w, FILENUMS v) {
wbuf_FILENUM(w, v.filenums[i]); wbuf_FILENUM(w, v.filenums[i]);
} }
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef _TOKU_WORKSET_H
#define _TOKU_WORKSET_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -187,5 +187,3 @@ workset_join(struct workset *ws) { ...@@ -187,5 +187,3 @@ workset_join(struct workset *ws) {
} }
workset_unlock(ws); workset_unlock(ws);
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef XIDS_INTERNAL_H
#define XIDS_INTERNAL_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -90,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -90,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -106,5 +105,3 @@ typedef struct __attribute__((__packed__)) xids_t { ...@@ -106,5 +105,3 @@ typedef struct __attribute__((__packed__)) xids_t {
// ... because transaction 0 is implicit // ... because transaction 0 is implicit
TXNID ids[]; TXNID ids[];
} XIDS_S; } XIDS_S;
#endif
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
* TokuWiki/Imp/TransactionsOverview. * TokuWiki/Imp/TransactionsOverview.
*/ */
#ifndef XIDS_H
#define XIDS_H
#ident "$Id$" #ident "$Id$"
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -101,6 +98,8 @@ PATENT RIGHTS GRANT: ...@@ -101,6 +98,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -145,7 +144,3 @@ unsigned char *xids_get_end_of_array(XIDS xids); ...@@ -145,7 +144,3 @@ unsigned char *xids_get_end_of_array(XIDS xids);
void wbuf_nocrc_xids(struct wbuf *wb, XIDS xids); void wbuf_nocrc_xids(struct wbuf *wb, XIDS xids);
void xids_fprintf(FILE* fp, XIDS xids); void xids_fprintf(FILE* fp, XIDS xids);
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef TOKU_YBT_H
#define TOKU_YBT_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -89,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
...@@ -137,5 +137,3 @@ int toku_dbt_infinite_compare(const DBT *a, const DBT *b); ...@@ -137,5 +137,3 @@ int toku_dbt_infinite_compare(const DBT *a, const DBT *b);
// returns: true if the given dbts have the same data pointer and size // returns: true if the given dbts have the same data pointer and size
bool toku_dbt_equals(const DBT *a, const DBT *b); bool toku_dbt_equals(const DBT *a, const DBT *b);
#endif /* TOKU_YBT_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef CONCURRENT_TREE_H
#define CONCURRENT_TREE_H
#include <ft/comparator.h> #include <ft/comparator.h>
#include "treenode.h" #include "treenode.h"
...@@ -203,5 +202,3 @@ class concurrent_tree { ...@@ -203,5 +202,3 @@ class concurrent_tree {
#include "concurrent_tree.cc" #include "concurrent_tree.cc"
} /* namespace toku */ } /* namespace toku */
#endif /* CONCURRENT_TREE_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef KEYRANGE_H
#define KEYRANGE_H
#include <ft/comparator.h> #include <ft/comparator.h>
namespace toku { namespace toku {
...@@ -184,5 +183,3 @@ class keyrange { ...@@ -184,5 +183,3 @@ class keyrange {
}; };
} /* namespace toku */ } /* namespace toku */
#endif /* KEYRANGE_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_LOCK_REQUEST_H
#define TOKU_LOCK_REQUEST_H
#include <db.h> #include <db.h>
#include <toku_pthread.h> #include <toku_pthread.h>
...@@ -243,5 +242,3 @@ class lock_request { ...@@ -243,5 +242,3 @@ class lock_request {
ENSURE_POD(lock_request); ENSURE_POD(lock_request);
} /* namespace toku */ } /* namespace toku */
#endif /* TOKU_LOCK_REQUEST_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef RANGE_BUFFER_H
#define RANGE_BUFFER_H
#include <toku_stdint.h> #include <toku_stdint.h>
#include <ft/ybt.h> #include <ft/ybt.h>
...@@ -217,5 +216,3 @@ class range_buffer { ...@@ -217,5 +216,3 @@ class range_buffer {
}; };
} /* namespace toku */ } /* namespace toku */
#endif /* RANGE_BUFFER_H */
...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
......
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_LOCK_REQUEST_UNIT_TEST_H
#define TOKU_LOCK_REQUEST_UNIT_TEST_H
#include "test.h" #include "test.h"
#include "locktree_unit_test.h" #include "locktree_unit_test.h"
...@@ -132,5 +131,3 @@ class lock_request_unit_test { ...@@ -132,5 +131,3 @@ class lock_request_unit_test {
}; };
} }
#endif
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_LOCKTREE_UNIT_TEST_H
#define TOKU_LOCKTREE_UNIT_TEST_H
#include "test.h" #include "test.h"
#include "locktree.h" #include "locktree.h"
...@@ -157,5 +156,3 @@ class locktree_unit_test { ...@@ -157,5 +156,3 @@ class locktree_unit_test {
}; };
} /* namespace toku */ } /* namespace toku */
#endif /* TOKU_LOCKTREE_UNIT_TEST_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_MANAGER_TEST_H
#define TOKU_MANAGER_TEST_H
#include <toku_assert.h> #include <toku_assert.h>
#include <locktree/locktree.h> #include <locktree/locktree.h>
...@@ -111,5 +110,3 @@ class manager_unit_test { ...@@ -111,5 +110,3 @@ class manager_unit_test {
}; };
} /* namespace toku */ } /* namespace toku */
#endif /* TOKU_MANAGER_TEST_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_TEST_H
#define TOKU_TEST_H
#include <ft/ybt.h> #include <ft/ybt.h>
#include <limits.h> #include <limits.h>
...@@ -160,5 +159,3 @@ static int compare_dbts(DB *db, const DBT *key1, const DBT *key2) { ...@@ -160,5 +159,3 @@ static int compare_dbts(DB *db, const DBT *key1, const DBT *key2) {
} }
} /* namespace toku */ } /* namespace toku */
#endif
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TREENODE_H
#define TREENODE_H
#include <memory.h> #include <memory.h>
#include <string.h> #include <string.h>
...@@ -283,5 +282,3 @@ class treenode { ...@@ -283,5 +282,3 @@ class treenode {
#include "treenode.cc" #include "treenode.cc"
} /* namespace toku */ } /* namespace toku */
#endif /* TREENODE_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_TXNID_SET_H
#define TOKU_TXNID_SET_H
#include <ft/fttypes.h> #include <ft/fttypes.h>
#include <util/omt.h> #include <util/omt.h>
...@@ -130,5 +129,3 @@ class txnid_set { ...@@ -130,5 +129,3 @@ class txnid_set {
ENSURE_POD(txnid_set); ENSURE_POD(txnid_set);
} /* namespace toku */ } /* namespace toku */
#endif /* TOKU_TXNID_SET_H */
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_WFG_H
#define TOKU_WFG_H
#include <ft/fttypes.h> #include <ft/fttypes.h>
#include <util/omt.h> #include <util/omt.h>
...@@ -159,5 +158,3 @@ class wfg { ...@@ -159,5 +158,3 @@ class wfg {
ENSURE_POD(wfg); ENSURE_POD(wfg);
} /* namespace toku */ } /* namespace toku */
#endif /* TOKU_WFG_H */
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$" #ident "$Id$"
#ifndef MEMORY_H
#define MEMORY_H
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -89,12 +87,13 @@ PATENT RIGHTS GRANT: ...@@ -89,12 +87,13 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#include <stdlib.h> #include <stdlib.h>
#include <toku_portability.h> #include <toku_portability.h>
/* Tokutek memory allocation functions and macros. /* Tokutek memory allocation functions and macros.
* These are functions for malloc and free */ * These are functions for malloc and free */
...@@ -225,5 +224,3 @@ typedef struct memory_status { ...@@ -225,5 +224,3 @@ typedef struct memory_status {
void toku_memory_get_status(LOCAL_MEMORY_STATUS s); void toku_memory_get_status(LOCAL_MEMORY_STATUS s);
size_t toku_memory_footprint(void * p, size_t touched); size_t toku_memory_footprint(void * p, size_t touched);
#endif
...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
// read the processor time stamp register // read the processor time stamp register
......
...@@ -86,11 +86,12 @@ PATENT RIGHTS GRANT: ...@@ -86,11 +86,12 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_ASSERT_H
#define TOKU_ASSERT_H
/* The problem with assert.h: If NDEBUG is set then it doesn't execute the function, if NDEBUG isn't set then we get a branch that isn't taken. */ /* The problem with assert.h: If NDEBUG is set then it doesn't execute the function, if NDEBUG isn't set then we get a branch that isn't taken. */
/* This version will complain if NDEBUG is set. */ /* This version will complain if NDEBUG is set. */
/* It evaluates the argument and then calls a function toku_do_assert() which takes all the hits for the branches not taken. */ /* It evaluates the argument and then calls a function toku_do_assert() which takes all the hits for the branches not taken. */
...@@ -201,5 +202,3 @@ get_error_errno(void) ...@@ -201,5 +202,3 @@ get_error_errno(void)
} }
extern bool toku_gdb_dump_on_assert; extern bool toku_gdb_dump_on_assert;
#endif
...@@ -85,12 +85,11 @@ PATENT RIGHTS GRANT: ...@@ -85,12 +85,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2012-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2012-2013 Tokutek Inc. All rights reserved."
#ident "$Id$" #ident "$Id$"
#ifndef TOKU_ATOMIC_H
#define TOKU_ATOMIC_H
#include <portability/toku_config.h> #include <portability/toku_config.h>
#include <toku_assert.h> #include <toku_assert.h>
...@@ -159,5 +158,3 @@ static inline bool toku_sync_bool_compare_and_swap(T *addr, U oldval, V newval) ...@@ -159,5 +158,3 @@ static inline bool toku_sync_bool_compare_and_swap(T *addr, U oldval, V newval)
#pragma GCC poison __sync_synchronize #pragma GCC poison __sync_synchronize
#pragma GCC poison __sync_lock_test_and_set #pragma GCC poison __sync_lock_test_and_set
#pragma GCC poison __sync_release #pragma GCC poison __sync_release
#endif // TOKU_ATOMIC_H
...@@ -85,12 +85,11 @@ PATENT RIGHTS GRANT: ...@@ -85,12 +85,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2012-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2012-2013 Tokutek Inc. All rights reserved."
#ident "$Id$" #ident "$Id$"
#ifndef TOKU_BYTESWAP_H
#define TOKU_BYTESWAP_H
#include <portability/toku_config.h> #include <portability/toku_config.h>
#if defined(HAVE_BYTESWAP_H) #if defined(HAVE_BYTESWAP_H)
...@@ -102,5 +101,3 @@ PATENT RIGHTS GRANT: ...@@ -102,5 +101,3 @@ PATENT RIGHTS GRANT:
# include <libkern/OSByteOrder.h> # include <libkern/OSByteOrder.h>
# define bswap_64 OSSwapInt64 # define bswap_64 OSSwapInt64
#endif #endif
#endif /* TOKU_BYTESWAP_H */
...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ifndef PORTABILITY_TOKU_CRASH_H #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#define PORTABILITY_TOKU_CRASH_H
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -192,5 +191,3 @@ toku_crash_and_dump_core_on_purpose(void) { ...@@ -192,5 +191,3 @@ toku_crash_and_dump_core_on_purpose(void) {
} }
void toku_try_gdb_stack_trace(const char *gdb_path); void toku_try_gdb_stack_trace(const char *gdb_path);
#endif // PORTABILITY_TOKU_CRASH_H
...@@ -86,8 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,8 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
/* Purpose of this file is to provide definitions of /* Purpose of this file is to provide definitions of
* Host to Disk byte transposition functions, an abstraction of * Host to Disk byte transposition functions, an abstraction of
...@@ -106,9 +107,6 @@ PATENT RIGHTS GRANT: ...@@ -106,9 +107,6 @@ PATENT RIGHTS GRANT:
* HOST AND A LITTLE-ENDIAN DISK. * HOST AND A LITTLE-ENDIAN DISK.
*/ */
#ifndef _TOKU_HTOD_H
#define _TOKU_HTOD_H
#include <portability/toku_config.h> #include <portability/toku_config.h>
#if defined(HAVE_ENDIAN_H) #if defined(HAVE_ENDIAN_H)
...@@ -166,8 +164,3 @@ toku_htod32(uint32_t i) { ...@@ -166,8 +164,3 @@ toku_htod32(uint32_t i) {
#else #else
#error Not supported #error Not supported
#endif #endif
#endif
...@@ -86,14 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,14 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ifndef _TOKU_HTONL_H
#define _TOKU_HTONL_H
#if !__linux__ && !__FreeBSD__ && !__sun__ #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
//#error
#endif
#include <toku_htod.h> #include <toku_htod.h>
#include <arpa/inet.h> #include <arpa/inet.h>
...@@ -105,5 +100,3 @@ static inline uint32_t toku_htonl(uint32_t i) { ...@@ -105,5 +100,3 @@ static inline uint32_t toku_htonl(uint32_t i) {
static inline uint32_t toku_ntohl(uint32_t i) { static inline uint32_t toku_ntohl(uint32_t i) {
return ntohl(i); return ntohl(i);
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef _TOKUDB_LIST_H
#define _TOKUDB_LIST_H
#ident "$Id$" #ident "$Id$"
/* /*
...@@ -89,13 +87,11 @@ PATENT RIGHTS GRANT: ...@@ -89,13 +87,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007, 2008, 2009 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007, 2008, 2009 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." #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."
//TODO: #1378 This is not threadsafe. Make sure when splitting locks
//that we protect these calls.
// This toku_list is intended to be embedded in other data structures. // This toku_list is intended to be embedded in other data structures.
struct toku_list { struct toku_list {
struct toku_list *next, *prev; struct toku_list *next, *prev;
...@@ -177,7 +173,3 @@ static inline void toku_list_move(struct toku_list *newhead, struct toku_list *o ...@@ -177,7 +173,3 @@ static inline void toku_list_move(struct toku_list *newhead, struct toku_list *o
#else #else
#define toku_list_struct(p, t, f) ((t*)((char*)(p) - ((char*)&((t*)0)->f))) #define toku_list_struct(p, t, f) ((t*)((char*)(p) - ((char*)&((t*)0)->f)))
#endif #endif
#endif
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_OS_H
#define TOKU_OS_H
#include <dirent.h> #include <dirent.h>
#include <sys/time.h> #include <sys/time.h>
...@@ -179,5 +178,3 @@ int toku_fstat(int fd, toku_struct_stat *statbuf) __attribute__((__visibility__( ...@@ -179,5 +178,3 @@ int toku_fstat(int fd, toku_struct_stat *statbuf) __attribute__((__visibility__(
// Portable linux 'dup2' // Portable linux 'dup2'
int toku_dup2(int fd, int fd2) __attribute__((__visibility__("default"))); int toku_dup2(int fd, int fd2) __attribute__((__visibility__("default")));
#endif /* TOKU_OS_H */
...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#if !defined(TOKU_OS_TYPES_H) #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#define TOKU_OS_TYPES_H
#include <stdbool.h> #include <stdbool.h>
#include <sys/types.h> #include <sys/types.h>
...@@ -128,5 +127,3 @@ typedef struct stat toku_struct_stat; ...@@ -128,5 +127,3 @@ typedef struct stat toku_struct_stat;
#if !defined(O_BINARY) #if !defined(O_BINARY)
#define O_BINARY 0 #define O_BINARY 0
#endif #endif
#endif
...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,12 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef PORTABILITY_TOKU_PATH_H
#define PORTABILITY_TOKU_PATH_H
#include <stdarg.h> #include <stdarg.h>
#include <limits.h> #include <limits.h>
#include <sys/types.h> #include <sys/types.h>
...@@ -124,5 +123,3 @@ char *toku_path_join(char *dest, int n, const char *base, ...); ...@@ -124,5 +123,3 @@ char *toku_path_join(char *dest, int n, const char *base, ...);
// There are n path components, including base. // There are n path components, including base.
// Returns: // Returns:
// dest (useful for chaining function calls) // dest (useful for chaining function calls)
#endif // PORTABILITY_TOKU_PATH_H
...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_PORTABILITY_H
#define TOKU_PORTABILITY_H
#include "toku_config.h" #include "toku_config.h"
...@@ -363,6 +363,3 @@ static inline uint64_t roundup_to_multiple(uint64_t alignment, uint64_t v) ...@@ -363,6 +363,3 @@ static inline uint64_t roundup_to_multiple(uint64_t alignment, uint64_t v)
assert(result<v+alignment); // The result is the smallest such multiple of alignment. assert(result<v+alignment); // The result is the smallest such multiple of alignment.
return result; return result;
} }
#endif /* TOKU_PORTABILITY_H */
...@@ -87,10 +87,9 @@ PATENT RIGHTS GRANT: ...@@ -87,10 +87,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ifndef TOKU_PTHREAD_H #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#define TOKU_PTHREAD_H
#include <pthread.h> #include <pthread.h>
#include <time.h> #include <time.h>
...@@ -407,5 +406,3 @@ static inline int ...@@ -407,5 +406,3 @@ static inline int
toku_pthread_setspecific(toku_pthread_key_t key, void *data) { toku_pthread_setspecific(toku_pthread_key_t key, void *data) {
return pthread_setspecific(key, data); return pthread_setspecific(key, data);
} }
#endif /* TOKU_PTHREAD_H */
...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
#ifndef TOKU_RACE_TOOLS_H
#define TOKU_RACE_TOOLS_H
#include <portability/toku_config.h> #include <portability/toku_config.h>
...@@ -138,5 +138,3 @@ PATENT RIGHTS GRANT: ...@@ -138,5 +138,3 @@ PATENT RIGHTS GRANT:
# define RUNNING_ON_VALGRIND (0U) # define RUNNING_ON_VALGRIND (0U)
#endif #endif
#endif // TOKU_RACE_TOOLS_H
...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ifndef TOKU_RANDOM_H #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#define TOKU_RANDOM_H
#include <portability/toku_config.h> #include <portability/toku_config.h>
#include <toku_portability.h> #include <toku_portability.h>
...@@ -169,5 +168,3 @@ rand_choices(struct random_data *buf, uint32_t choices) { ...@@ -169,5 +168,3 @@ rand_choices(struct random_data *buf, uint32_t choices) {
return result; return result;
} }
#endif // TOKU_RANDOM_H
...@@ -86,13 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,13 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ifndef TOKU_STDINT_H #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#define TOKU_STDINT_H
#include <stdint.h> #include <stdint.h>
#include <inttypes.h> #include <inttypes.h>
#endif
...@@ -86,5 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -86,5 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#include <stdlib.h> #include <stdlib.h>
...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,9 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #pragma once
#ifndef TOKU_TIME_H #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#define TOKU_TIME_H
#include "toku_config.h" #include "toku_config.h"
...@@ -161,5 +160,3 @@ static inline uint64_t toku_current_time_microsec(void) { ...@@ -161,5 +160,3 @@ static inline uint64_t toku_current_time_microsec(void) {
gettimeofday(&t, NULL); gettimeofday(&t, NULL);
return t.tv_sec * (1UL * 1000 * 1000) + t.tv_usec; return t.tv_sec * (1UL * 1000 * 1000) + t.tv_usec;
} }
#endif
...@@ -89,8 +89,7 @@ PATENT RIGHTS GRANT: ...@@ -89,8 +89,7 @@ PATENT RIGHTS GRANT:
#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." #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."
#ident "$Id$" #ident "$Id$"
#ifndef TOKU_INDEXER_INTERNAL_H #pragma once
#define TOKU_INDEXER_INTERNAL_H
#include <ft/txn_state.h> #include <ft/txn_state.h>
#include <toku_pthread.h> #include <toku_pthread.h>
...@@ -168,5 +167,3 @@ void indexer_undo_do_init(DB_INDEXER *indexer); ...@@ -168,5 +167,3 @@ void indexer_undo_do_init(DB_INDEXER *indexer);
void indexer_undo_do_destroy(DB_INDEXER *indexer); void indexer_undo_do_destroy(DB_INDEXER *indexer);
int indexer_undo_do(DB_INDEXER *indexer, DB *hotdb, struct ule_prov_info *prov_info, DBT_ARRAY *hot_keys, DBT_ARRAY *hot_vals); int indexer_undo_do(DB_INDEXER *indexer, DB *hotdb, struct ule_prov_info *prov_info, DBT_ARRAY *hot_keys, DBT_ARRAY *hot_vals);
#endif
...@@ -89,9 +89,7 @@ PATENT RIGHTS GRANT: ...@@ -89,9 +89,7 @@ PATENT RIGHTS GRANT:
#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." #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."
#ident "$Id$" #ident "$Id$"
#ifndef TOKU_INDEXER_H #pragma once
#define TOKU_INDEXER_H
// locking and unlocking functions to synchronize cursor position with // locking and unlocking functions to synchronize cursor position with
// XXX_multiple APIs // XXX_multiple APIs
...@@ -178,6 +176,3 @@ typedef struct { ...@@ -178,6 +176,3 @@ typedef struct {
} INDEXER_STATUS_S, *INDEXER_STATUS; } INDEXER_STATUS_S, *INDEXER_STATUS;
void toku_indexer_get_status(INDEXER_STATUS s); void toku_indexer_get_status(INDEXER_STATUS s);
#endif // TOKU_INDEXER_H
...@@ -89,8 +89,7 @@ PATENT RIGHTS GRANT: ...@@ -89,8 +89,7 @@ PATENT RIGHTS GRANT:
#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." #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."
#ident "$Id$" #ident "$Id$"
#ifndef TOKU_LOADER_H #pragma once
#define TOKU_LOADER_H
/* /*
Create and set up a loader. Create and set up a loader.
...@@ -208,6 +207,3 @@ typedef struct { ...@@ -208,6 +207,3 @@ typedef struct {
void toku_loader_get_status(LOADER_STATUS s); void toku_loader_get_status(LOADER_STATUS s);
#endif
...@@ -86,13 +86,11 @@ PATENT RIGHTS GRANT: ...@@ -86,13 +86,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2009-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2009-2013 Tokutek Inc. All rights reserved."
#ident "$Id$" #ident "$Id$"
#ifndef CHECKPOINT_TEST_H
#define CHECKPOINT_TEST_H
DB_ENV *env; DB_ENV *env;
enum {MAX_NAME=128}; enum {MAX_NAME=128};
...@@ -537,6 +535,3 @@ snapshot(DICTIONARY d, int do_checkpoint) { ...@@ -537,6 +535,3 @@ snapshot(DICTIONARY d, int do_checkpoint) {
db_startup(d, NULL); db_startup(d, NULL);
} }
} }
#endif
...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT: ...@@ -86,10 +86,10 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2010-2013 Tokutek Inc. All rights reserved."
#ifndef KEY_VAL_H
#define KEY_VAL_H
// //
// Functions to create unique key/value pairs, row generators, checkers, ... for each of NUM_DBS // Functions to create unique key/value pairs, row generators, checkers, ... for each of NUM_DBS
// //
...@@ -295,8 +295,3 @@ static int UU() generate_initial_table(DB *db, DB_TXN *txn, uint32_t rows) ...@@ -295,8 +295,3 @@ static int UU() generate_initial_table(DB *db, DB_TXN *txn, uint32_t rows)
return r; return r;
} }
#endif // KEY_VAL_H
...@@ -85,8 +85,11 @@ PATENT RIGHTS GRANT: ...@@ -85,8 +85,11 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#ident "$Id$" #ident "$Id$"
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -85,6 +85,8 @@ PATENT RIGHTS GRANT: ...@@ -85,6 +85,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#ident "$Id$" #ident "$Id$"
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$" #ident "$Id$"
#ifndef __TEST_H
#define __TEST_H
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -91,7 +87,10 @@ PATENT RIGHTS GRANT: ...@@ -91,7 +87,10 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include <toku_portability.h>
#include <string.h> #include <string.h>
...@@ -513,5 +512,3 @@ main(int argc, char * const argv[]) ...@@ -513,5 +512,3 @@ main(int argc, char * const argv[])
#ifndef DB_GID_SIZE #ifndef DB_GID_SIZE
#define DB_GID_SIZE DB_XIDDATASIZE #define DB_GID_SIZE DB_XIDDATASIZE
#endif #endif
#endif // __TEST_H
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$" #ident "$Id$"
#ifndef __TEST_KV_GEN_H
#define __TEST_KV_GEN_H
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -91,6 +87,8 @@ PATENT RIGHTS GRANT: ...@@ -91,6 +87,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
...@@ -279,6 +277,3 @@ put_multiple_generate(DB *dest_db, DB *src_db, DBT *dest_key, DBT *dest_val, con ...@@ -279,6 +277,3 @@ put_multiple_generate(DB *dest_db, DB *src_db, DBT *dest_key, DBT *dest_val, con
} }
return 0; return 0;
} }
#endif // __TEST_KV_GEN_H
...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -86,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2009-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2009-2013 Tokutek Inc. All rights reserved."
#ident "$Id$" #ident "$Id$"
...@@ -102,9 +104,6 @@ PATENT RIGHTS GRANT: ...@@ -102,9 +104,6 @@ PATENT RIGHTS GRANT:
// with keys in the range [0, table_size - 1] unless disperse_keys is true, // with keys in the range [0, table_size - 1] unless disperse_keys is true,
// then the keys are scrambled up in the integer key space. // then the keys are scrambled up in the integer key space.
#ifndef _THREADED_STRESS_TEST_HELPERS_H_
#define _THREADED_STRESS_TEST_HELPERS_H_
#include "toku_config.h" #include "toku_config.h"
#include "test.h" #include "test.h"
...@@ -2924,5 +2923,3 @@ UU() perf_test_main_with_cmp(struct cli_args *args, int (*cmp)(DB *, const DBT * ...@@ -2924,5 +2923,3 @@ UU() perf_test_main_with_cmp(struct cli_args *args, int (*cmp)(DB *, const DBT *
// We want to control the row size and its compressibility. // We want to control the row size and its compressibility.
open_and_stress_tables(args, false, cmp); open_and_stress_tables(args, false, cmp);
} }
#endif
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ifndef YDB_INTERNAL_H
#define YDB_INTERNAL_H
/* /*
COPYING CONDITIONS NOTICE: COPYING CONDITIONS NOTICE:
...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT: ...@@ -88,6 +86,8 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#ident "$Id$" #ident "$Id$"
...@@ -312,5 +312,3 @@ txn_is_read_only(DB_TXN* txn) { ...@@ -312,5 +312,3 @@ txn_is_read_only(DB_TXN* txn) {
void env_panic(DB_ENV * env, int cause, const char * msg); void env_panic(DB_ENV * env, int cause, const char * msg);
void env_note_db_opened(DB_ENV *env, DB *db); void env_note_db_opened(DB_ENV *env, DB *db);
void env_note_db_closed(DB_ENV *env, DB *db); void env_note_db_closed(DB_ENV *env, DB *db);
#endif
...@@ -88,11 +88,8 @@ PATENT RIGHTS GRANT: ...@@ -88,11 +88,8 @@ PATENT RIGHTS GRANT:
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
// This file defines the public interface to the ydb library
#if !defined(TOKU_YDB_INTERFACE_H)
#define TOKU_YDB_INTERFACE_H
#pragma once
// Initialize the ydb library globals. // Initialize the ydb library globals.
// Called when the ydb library is loaded. // Called when the ydb library is loaded.
...@@ -114,5 +111,3 @@ extern "C" uint64_t toku_test_get_latest_lsn(DB_ENV *env) __attribute__((__visib ...@@ -114,5 +111,3 @@ extern "C" uint64_t toku_test_get_latest_lsn(DB_ENV *env) __attribute__((__visib
// test-only function // test-only function
extern "C" int toku_test_get_checkpointing_user_data_status(void) __attribute__((__visibility__("default"))); extern "C" int toku_test_get_checkpointing_user_data_status(void) __attribute__((__visibility__("default")));
#endif
...@@ -86,14 +86,12 @@ PATENT RIGHTS GRANT: ...@@ -86,14 +86,12 @@ PATENT RIGHTS GRANT:
under this License. under this License.
*/ */
#pragma once
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 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." #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."
// This file defines the public interface to the ydb library // This file defines the public interface to the ydb library
#if !defined(TOKU_YDB_CURSOR_H)
#define TOKU_YDB_CURSOR_H
typedef enum { typedef enum {
YDB_C_LAYER_STATUS_NUM_ROWS = 0 /* number of rows in this status array */ YDB_C_LAYER_STATUS_NUM_ROWS = 0 /* number of rows in this status array */
} ydb_c_lock_layer_status_entry; } ydb_c_lock_layer_status_entry;
...@@ -110,7 +108,3 @@ int toku_c_getf_set(DBC *c, uint32_t flag, DBT *key, YDB_CALLBACK_FUNCTION f, vo ...@@ -110,7 +108,3 @@ int toku_c_getf_set(DBC *c, uint32_t flag, DBT *key, YDB_CALLBACK_FUNCTION f, vo
int toku_c_close(DBC * c); int toku_c_close(DBC * c);
int toku_db_cursor_internal(DB *db, DB_TXN * txn, DBC **c, uint32_t flags, int is_temporary_cursor); int toku_db_cursor_internal(DB *db, DB_TXN * txn, DBC **c, uint32_t flags, int is_temporary_cursor);
int toku_db_cursor(DB *db, DB_TXN *txn, DBC **c, uint32_t flags); int toku_db_cursor(DB *db, DB_TXN *txn, DBC **c, uint32_t flags);
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment