Skip to content

Commit

Permalink
note that deleteversionsfrom is inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
pirtleshell committed Jun 24, 2024
1 parent 19e0b83 commit c8254b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mutable_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ func (tree *MutableTree) DeleteVersion(version int64) error {
return nil
}

// DeleteVersionsFrom removes from the given version upwards from the MutableTree.
// DeleteVersionsFrom removes from the given version upwards (inclusive) from the MutableTree.
// It will not block the SaveVersion() call, instead it will be queued and executed deferred.
func (tree *MutableTree) DeleteVersionsFrom(fromVersion int64) error {
if err := tree.ndb.DeleteVersionsFrom(fromVersion); err != nil {
Expand Down

0 comments on commit c8254b7

Please sign in to comment.