Skip to content

Commit

Permalink
No need to increment the version here anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Dec 1, 2017
1 parent d9267e2 commit 039828e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orphaning_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (tree *orphaningTree) SaveAs(version int64) {
tree.ndb.SaveBranch(tree.root, func(node *Node) {
tree.unorphan(node._hash())
})
tree.ndb.SaveOrphans(tree.version+1, tree.orphans)
tree.ndb.SaveOrphans(tree.version, tree.orphans)
}

// Add orphans to the orphan list. Doesn't write to disk.
Expand Down

0 comments on commit 039828e

Please sign in to comment.