Fix a state store comment about version

This commit is contained in:
Kyle Havlovitz 2020-08-11 13:46:12 -07:00
parent fcedff0a4a
commit 8118e3db40
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ func (s *Store) ensureNodeTxn(tx *txn, idx uint64, preserveIndexes bool, node *s
node.ModifyIndex = idx
} else if !preserveIndexes || node.CreateIndex == 0 {
// If this isn't a snapshot or there were no saved indexes, set CreateIndex
// and ModifyIndex from the given index. Prior to 1.9.0/1.8.3/1.7.7/1.6.8 nodes
// and ModifyIndex from the given index. Prior to 1.9.0/1.8.3/1.7.7, nodes
// were not saved with an index, so this is to avoid ending up with a 0 index
// when loading a snapshot from an older version.
node.CreateIndex = idx