From c8254b793857754c4326d363a94af66adc969d12 Mon Sep 17 00:00:00 2001 From: Robert Pirtle Date: Mon, 24 Jun 2024 16:09:45 -0700 Subject: [PATCH] note that deleteversionsfrom is inclusive --- mutable_tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutable_tree.go b/mutable_tree.go index 458ec8566..9501192e4 100644 --- a/mutable_tree.go +++ b/mutable_tree.go @@ -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 {