Joe Thornber
4313469475
[all] Switch from boost::shared_ptr -> std::shared_ptr.
...
Shared_ptr has moved into the standard library since these tools were
first written.
2020-04-30 15:02:43 +01:00
Joe Thornber
e801cc607b
[block_manager] Hard code block size to 4k.
...
We're never going to use anything other than 4k, and by hard coding it we
avoid making block_manager a template.
2020-04-30 14:30:01 +01:00
Joe Thornber
4ed5ec5e10
[unit-test] Knock out some dead code
2017-03-13 14:17:32 +00:00
Joe Thornber
a7c96c0e1e
[everything] Fix circular shared pointer references.
...
We had a cycle from transaction_manager <-> space_map, and also from
the ref_counters back up to the tm.
This prevented objects being destroyed when various programs exited.
From now on we'll try and only use a shared ptr if ownership is
implied. Otherwise a reference will be used (eg, for up pointers).
2014-08-26 11:14:49 +01:00
Joe Thornber
4df679174c
correct a couple of #includes that were pointing to the old location of endian_utils.h
2014-01-08 11:04:56 +00:00
Joe Thornber
8049d369a9
stuff
2013-12-11 17:28:14 +00:00
Joe Thornber
0029962f20
Give up with --std=c++11
...
There are too many distros that use old versions of g++ that don't support it adequately.
2013-08-08 10:49:59 +01:00
Joe Thornber
eb8d4c6f0b
Get tools building with g++ 4.8.1
2013-06-25 13:48:02 +01:00
Joe Thornber
bcdb373b9a
[unit-tests] remove a bit of debug output
2013-06-25 10:55:50 +01:00
Joe Thornber
3066487814
[btree_damage_visitor_t] pass a couple of params by const reference rather than value.
2013-05-28 13:04:00 +01:00
Joe Thornber
e64dda95f6
rename range<> -> run<>
2013-05-28 12:20:05 +01:00
Joe Thornber
12d6b8a2a7
[btree_damage_visitor] Make sure the path for a value includes it's key.
2013-05-23 14:37:24 +01:00
Joe Thornber
d7c1eabfc0
[btree_damage_tracker] track the paths
2013-05-20 12:31:47 +01:00
Joe Thornber
e60c84392d
[btree_damage_vistor_t] add some missing tree_complete()s
2013-05-17 17:44:05 +01:00
Joe Thornber
6b5a5f265d
[btree_damage_visitor_t] pass a path to expect_damage.
2013-05-17 17:03:57 +01:00
Joe Thornber
50de448f2a
[btree_damage_visitor_t] node_info << operator
2013-05-17 16:51:38 +01:00
Joe Thornber
d3fa4102c2
[btree_damage_visitor] pass the btree_path to both the damage and value visitors.
2013-05-17 12:05:13 +01:00
Joe Thornber
30c9e0a005
[btree_damage_visitor_t] Store the btree path in the node_info rather than the level.
2013-05-17 11:53:16 +01:00
Joe Thornber
93ba17a3f4
[btree_damage_tests] << operator for thing.
2013-05-17 11:48:02 +01:00
Joe Thornber
38dcde0c37
[btree_damage_visitor] Introduce a DamagedKeys matcher in the tests.
2013-05-17 11:42:55 +01:00
Joe Thornber
08b2749191
Remove level from btree_details::damage
2013-05-17 11:35:46 +01:00
Joe Thornber
f016161e9a
[btree_damage_visitor] Hide this behind a utility function btree_visit_values().
2013-05-17 11:29:34 +01:00
Joe Thornber
b0d1fa0851
Sanitise btree_detail::node_location
2013-05-15 13:37:30 +01:00
Joe Thornber
35cf5cbb73
BTreeDamageVisitorTests
2013-05-15 13:36:56 +01:00
Joe Thornber
684746738f
BTreeDamageVisitorTests
2013-05-14 15:38:20 +01:00
Joe Thornber
730a82f974
BTreeDamageVisitorTests
2013-05-14 13:07:04 +01:00
Joe Thornber
7d49496c3b
BTreeDamageVisitorTests
2013-05-14 11:27:55 +01:00
Joe Thornber
7e8e483626
More BTreeDamageVisitorTests
2013-05-14 11:01:39 +01:00
Joe Thornber
cb45c66347
More work on BTreeDamageVisitorTests
2013-05-14 10:32:28 +01:00
Joe Thornber
779f9e7cb4
More tidying of the BTreeDamageVisitorTests
2013-05-13 16:26:16 +01:00
Joe Thornber
4d2c3a7c14
A couple more tests for BTreeDamageVisitorTests
2013-05-13 14:09:18 +01:00
Joe Thornber
185f0fc758
Some refactoring of the BTreeDamageVisitorTests
2013-05-13 13:40:20 +01:00
Joe Thornber
01f1117ea4
BTreeDamageVisitorTests.visiting_a_populated_tree_with_a_sequence_of_damaged_leaf_nodes
2013-05-13 12:48:03 +01:00
Joe Thornber
88c63f620f
Lots of work on the btree_damage_visitor
2013-05-13 12:36:57 +01:00
Joe Thornber
8ecf2f27ed
btree_damage_visitor stuff.
2013-05-09 13:31:04 +01:00
Joe Thornber
ab66e9f8e3
Some more work on btree_damage_visitor
2013-05-08 16:38:38 +01:00
Joe Thornber
23ef3b387d
Start btree_damage_visitor.
2013-05-08 12:00:24 +01:00