Introduce persistent-data/data-structures/

This commit is contained in:
Joe Thornber 2013-01-11 19:26:51 +00:00
parent d362fdc867
commit aacca8d963
13 changed files with 24 additions and 19 deletions

View File

@ -32,11 +32,13 @@ SOURCE=\
persistent-data/error_set.cc \
persistent-data/hex_dump.cc \
persistent-data/lock_tracker.cc \
persistent-data/transaction_manager.cc \
\
persistent-data/space_map.cc \
persistent-data/space-maps/disk.cc \
persistent-data/space-maps/recursive.cc \
persistent-data/space-maps/careful_alloc.cc \
persistent-data/transaction_manager.cc \
\
thin-provisioning/human_readable_format.cc \
thin-provisioning/metadata.cc \
thin-provisioning/metadata_checker.cc \
@ -112,9 +114,9 @@ THIN_CHECK_SOURCE=\
persistent-data/hex_dump.cc \
persistent-data/lock_tracker.cc \
persistent-data/space_map.cc \
persistent-data/space_map_disk.cc \
persistent-data/space_map_recursive.cc \
persistent-data/space_map_careful_alloc.cc \
persistent-data/space-maps/disk.cc \
persistent-data/space-maps/recursive.cc \
persistent-data/space-maps/careful_alloc.cc \
persistent-data/transaction_manager.cc \
thin-provisioning/metadata.cc \
thin-provisioning/metadata_checker.cc \

View File

@ -19,8 +19,8 @@
#ifndef BTREE_H
#define BTREE_H
#include "endian_utils.h"
#include "transaction_manager.h"
#include "persistent-data/endian_utils.h"
#include "persistent-data/transaction_manager.h"
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>

View File

@ -18,9 +18,9 @@
#include "btree.h"
#include "errors.h"
#include "checksum.h"
#include "transaction_manager.h"
#include "persistent-data/errors.h"
#include "persistent-data/checksum.h"
#include "persistent-data/transaction_manager.h"
#include <iostream>

View File

@ -19,10 +19,11 @@
#ifndef BTREE_CHECKER_H
#define BTREE_CHECKER_H
#include "block_counter.h"
#include "btree.h"
#include "checksum.h"
#include "error_set.h"
#include "persistent-data/block_counter.h"
#include "persistent-data/checksum.h"
#include "persistent-data/error_set.h"
#include <sstream>
#include <map>

View File

@ -20,7 +20,7 @@
#define SPACE_MAP_DISK_H
// FIXME: why is btree_checker needed?
#include "persistent-data/btree_checker.h"
#include "persistent-data/data-structures/btree_checker.h"
#include "persistent-data/space_map.h"
//----------------------------------------------------------------

View File

@ -20,7 +20,9 @@
#define SPACE_MAP_DISK_STRUCTURES_H
#include "persistent-data/endian_utils.h"
#include "persistent-data/btree.h"
// FIXME: what's this included for?
#include "persistent-data/data-structures/btree.h"
//----------------------------------------------------------------

View File

@ -20,7 +20,7 @@
#define METADATA_LL_H
#include "persistent-data/block.h"
#include "persistent-data/btree.h"
#include "persistent-data/data-structures/btree.h"
#include "persistent-data/endian_utils.h"
#include "persistent-data/space-maps/disk.h"
#include "persistent-data/transaction_manager.h"

View File

@ -20,7 +20,7 @@
#define METADATA_DISK_STRUCTURES_H
#include "persistent-data/endian_utils.h"
#include "persistent-data/btree.h"
#include "persistent-data/data-structures/btree.h"
//----------------------------------------------------------------

View File

@ -28,7 +28,7 @@
#include <string>
#include <vector>
#include "persistent-data/btree.h"
#include "persistent-data/data-structures/btree.h"
#include "thin-provisioning/metadata.h"
#include "thin-provisioning/metadata_checker.h"
#include "version.h"

View File

@ -18,7 +18,7 @@
#include "thin-provisioning/thin_pool.h"
#include "persistent-data/btree_checker.h"
#include "persistent-data/data-structures/btree_checker.h"
#include <stdexcept>
#include <sstream>

View File

@ -18,7 +18,7 @@
#include "persistent-data/transaction_manager.h"
#include "persistent-data/space-maps/core.h"
#include "persistent-data/btree.h"
#include "persistent-data/data-structures/btree.h"
#define BOOST_TEST_MODULE BTreeTests
#include <boost/test/included/unit_test.hpp>