mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Revert "Reduce SHAMapTreeNode copying during SHAMap unsharing:"
This reverts commit 47c6ab0ced.
This commit is contained in:
committed by
Vinnie Falco
parent
aaf209485c
commit
52879d964e
@@ -75,7 +75,7 @@ SHAMap::snapShot (bool isMutable) const
|
||||
newMap.seq_ = seq_ + 1;
|
||||
newMap.root_ = root_;
|
||||
|
||||
if ((state_ != SHAMapState::Immutable) || isMutable)
|
||||
if ((state_ != SHAMapState::Immutable) || !isMutable)
|
||||
{
|
||||
// If either map may change, they cannot share nodes
|
||||
newMap.unshare ();
|
||||
|
||||
Reference in New Issue
Block a user