Snapshotting an unbacked SHAMap should yield an unbacked SHAMap

This commit is contained in:
JoelKatz
2016-09-07 10:55:37 -07:00
committed by Edward Hennis
parent 2963e91752
commit ed02b0717e

View File

@@ -73,6 +73,7 @@ SHAMap::snapShot (bool isMutable) const
newMap.seq_ = seq_ + 1; newMap.seq_ = seq_ + 1;
newMap.root_ = root_; newMap.root_ = root_;
newMap.backed_ = backed_;
if ((state_ != SHAMapState::Immutable) || !isMutable) if ((state_ != SHAMapState::Immutable) || !isMutable)
{ {