Skip to content

Commit b79c29e

Browse files
authored
Merge pull request #412 from onflow/fxamacker/update-comment-for-nondeterministicfastcommit
Update comment for NondeterministicFastCommit
2 parents 688791c + 393e179 commit b79c29e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

storage.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,10 @@ func (s *PersistentSlabStorage) FastCommit(numWorkers int) error {
969969
return nil
970970
}
971971

972-
// NondeterministicFastCommit commits changes in nondeterministic order.
973-
// This is used by migration program when ordering isn't required.
972+
// NondeterministicFastCommit commits changed slabs in nondeterministic order.
973+
// Encoded slab data is deterministic (e.g. array and map iteration is deterministic).
974+
// IMPORTANT: This function is used by migration programs when commit order of slabs
975+
// is not required to be deterministic (while preserving deterministic array and map iteration).
974976
func (s *PersistentSlabStorage) NondeterministicFastCommit(numWorkers int) error {
975977
// No changes
976978
if len(s.deltas) == 0 {

0 commit comments

Comments
 (0)