Commit Graph

14 Commits

Author SHA1 Message Date
Alexander Holler
691ad88261 [caching/hint_array.cc] Fix ambigious array (C++11)
Template array exist in the namespace persistent_data as well as in std
of C++11. Explicitly use the one from persistent_data.

This fixes compilation bugs with CXXFLAGS=-std=gnu++11 together with
gcc 4.8.3 and boost 1.55.
2014-11-15 16:49:08 +01:00
Alexander Holler
baa70ecfe4 [caching/hint_array.cc] Fix ambigious shared_ptr (C++11)
Class shared_ptr exist in the namespace std for C++11 as well as in boost.
Explicitly use the one from boost in order to be compatible.

This fixes compilation bugs with CXXFLAGS=-std=gnu++11 together with
gcc 4.8.3 and boost 1.55.
2014-11-15 16:49:08 +01: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
f06a2673c5 wip 2014-07-29 11:34:26 +01:00
Joe Thornber
7a2c41022f Remove some 'typename's since older versions of g++ don't like. 2013-12-09 12:46:46 +00:00
Joe Thornber
3b11749dcf [caching tools] handle version 1 metadata where policy_hint_width is zero 2013-10-14 12:40:13 +01:00
Joe Thornber
8cfffe309c [caching/hint_array] resize the destination before unpacking a hint 2013-10-10 11:26:13 +01:00
Joe Thornber
19a1596591 [caching/hint_array] add walk method 2013-10-09 09:45:17 +01:00
Joe Thornber
be22981a7d [ache_check] hint array damage reporting 2013-10-08 11:00:05 +01:00
Joe Thornber
ddf5765f9c [caching] damage visitor and checker for hint array 2013-10-08 10:43:20 +01:00
Joe Thornber
7da033d5c1 [hint_array] move hint_traits to .cc file 2013-10-08 10:02:25 +01:00
Joe Thornber
bb898eeaad [cache_restore/dump] hint_width work.
dump/restore cycle works again.
2013-09-26 11:36:01 +01:00
Joe Thornber
8408ab12f8 [caching] add grow method to the hint_array wrapper 2013-09-24 12:12:57 +01:00
Joe Thornber
17f7c982f2 [caching] hint support 2013-09-24 12:00:09 +01:00