Skip to content

Commit 6e3d772

Browse files
committed
FT-294 Move serialization code to its own subdirectory, serialize/
1 parent 40ea904 commit 6e3d772

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+114
-117
lines changed

ft/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,15 @@ add_custom_target(
2424

2525
set(FT_SOURCES
2626
background_job_manager
27-
block_allocator
28-
block_table
2927
bndata
3028
cachetable
3129
checkpoint
32-
compress
3330
cursor
3431
ft
3532
ft-cachetable-wrappers
3633
ft-flusher
3734
ft-hot-flusher
38-
ft_node-serialize
39-
ft-node-deserialize
4035
ft-ops
41-
ft-serialize
4236
ft-test-helpers
4337
ft-verify
4438
loader/callbacks
@@ -55,14 +49,20 @@ set(FT_SOURCES
5549
msg_buffer
5650
node
5751
pivotkeys
58-
quicklz
5952
recover
6053
rollback
6154
rollback-apply
6255
rollback-ct-callbacks
6356
rollback_log_node_cache
6457
roll
65-
sub_block
58+
serialize/block_allocator
59+
serialize/block_table
60+
serialize/compress
61+
serialize/ft_node-serialize
62+
serialize/ft-node-deserialize
63+
serialize/ft-serialize
64+
serialize/quicklz
65+
serialize/sub_block
6666
txn
6767
txn_child_manager
6868
txn_manager

ft/bndata.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ PATENT RIGHTS GRANT:
9090

9191
#pragma once
9292

93-
#include <util/mempool.h>
94-
#include "wbuf.h"
95-
#include <util/dmt.h>
96-
#include "leafentry.h"
93+
#include "util/dmt.h"
94+
#include "util/mempool.h"
95+
96+
#include "ft/leafentry.h"
97+
#include "ft/serialize/wbuf.h"
9798

9899
// Key/leafentry pair stored in a dmt. The key is inlined, the offset (in leafentry mempool) is stored for the leafentry.
99100
struct klpair_struct {

ft/cachetable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ PATENT RIGHTS GRANT:
9494

9595
#include <fcntl.h>
9696

97-
#include "ft/block_table.h"
97+
#include "ft/serialize/block_table.h"
9898
#include "ft/logger.h"
9999
#include "ft/txn.h"
100100
#include "util/minicron.h"

ft/ft-cachetable-wrappers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ PATENT RIGHTS GRANT:
8989
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
9090
#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."
9191

92-
#include "ft/block_table.h"
92+
#include "ft/serialize/block_table.h"
9393
#include "ft/ft-cachetable-wrappers.h"
9494
#include "ft/ft-flusher.h"
9595
#include "ft/ft-internal.h"

ft/ft-flusher.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ PATENT RIGHTS GRANT:
8989
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
9090
#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."
9191

92-
#include "ft/block_table.h"
9392
#include "ft/ft.h"
9493
#include "ft/ft-cachetable-wrappers.h"
9594
#include "ft/ft-internal.h"
9695
#include "ft/ft-flusher.h"
9796
#include "ft/ft-flusher-internal.h"
98-
#include "ft/ft_node-serialize.h"
9997
#include "ft/node.h"
98+
#include "ft/serialize/block_table.h"
99+
#include "ft/serialize/ft_node-serialize.h"
100100
#include "portability/toku_assert.h"
101101
#include "portability/toku_atomic.h"
102102
#include "util/status.h"

ft/ft-internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct ft_header {
142142
// LSN of creation of "checkpoint-begin" record in log.
143143
LSN checkpoint_lsn;
144144

145-
// see ft_layout_version.h. maybe don't need this if we assume
145+
// see serialize/ft_layout_version.h. maybe don't need this if we assume
146146
// it's always the current version after deserializing
147147
const int layout_version;
148148
// different (<) from layout_version if upgraded from a previous

ft/ft-ops.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,21 +200,21 @@ basement nodes, bulk fetch, and partial fetch:
200200
201201
*/
202202

203-
#include "ft/block_table.h"
204203
#include "ft/checkpoint.h"
205204
#include "ft/cursor.h"
206205
#include "ft/ft.h"
207206
#include "ft/ft-cachetable-wrappers.h"
208207
#include "ft/ft-flusher.h"
209208
#include "ft/ft-internal.h"
210-
#include "ft/ft-serialize.h"
211-
#include "ft/ft_layout_version.h"
212-
#include "ft/ft_node-serialize.h"
213209
#include "ft/msg.h"
214210
#include "ft/leafentry.h"
215211
#include "ft/log-internal.h"
216212
#include "ft/node.h"
217-
#include "ft/sub_block.h"
213+
#include "ft/serialize/block_table.h"
214+
#include "ft/serialize/sub_block.h"
215+
#include "ft/serialize/ft-serialize.h"
216+
#include "ft/serialize/ft_layout_version.h"
217+
#include "ft/serialize/ft_node-serialize.h"
218218
#include "ft/txn_manager.h"
219219
#include "ft/ule.h"
220220
#include "ft/xids.h"

ft/ft-test-helpers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ PATENT RIGHTS GRANT:
9393
#include "ft/ft-cachetable-wrappers.h"
9494
#include "ft/ft-internal.h"
9595
#include "ft/ft-flusher.h"
96-
#include "ft/ft_node-serialize.h"
96+
#include "ft/serialize/ft_node-serialize.h"
9797
#include "ft/node.h"
9898
#include "ft/ule.h"
9999

ft/ft-verify.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ PATENT RIGHTS GRANT:
9797
* For each nonleaf node: All the messages have keys that are between the associated pivot keys ( left_pivot_key < message <= right_pivot_key)
9898
*/
9999

100-
#include "ft/block_table.h"
100+
#include "ft/serialize/block_table.h"
101101
#include "ft/ft.h"
102102
#include "ft/ft-cachetable-wrappers.h"
103103
#include "ft/ft-internal.h"

ft/ft.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ PATENT RIGHTS GRANT:
8989
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
9090
#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."
9191

92-
#include "ft/block_table.h"
92+
#include "ft/serialize/block_table.h"
9393
#include "ft/ft.h"
9494
#include "ft/ft-cachetable-wrappers.h"
9595
#include "ft/ft-internal.h"
96-
#include "ft/ft-serialize.h"
97-
#include "ft/ft_node-serialize.h"
9896
#include "ft/log-internal.h"
9997
#include "ft/log_header.h"
10098
#include "ft/node.h"
99+
#include "ft/serialize/ft-serialize.h"
100+
#include "ft/serialize/ft_node-serialize.h"
101101

102102
#include <memory.h>
103103
#include <toku_assert.h>

0 commit comments

Comments
 (0)