From ec99e6fd93af28d8eda2f5dceda2d65522367026 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 19 Jun 2013 17:19:24 +0100 Subject: [PATCH] [btree] update the root_ after an insert !!! --- persistent-data/data-structures/btree.tcc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/persistent-data/data-structures/btree.tcc b/persistent-data/data-structures/btree.tcc index 62219f4..241c866 100644 --- a/persistent-data/data-structures/btree.tcc +++ b/persistent-data/data-structures/btree.tcc @@ -486,6 +486,8 @@ namespace persistent_data { else // FIXME: check if we're overwriting with the same value. n.set_value(index, value); + + root_ = spine.get_root(); } template