From 1de70afef471e5dce86cf912951df7715a7e52e0 Mon Sep 17 00:00:00 2001 From: Brian Kassouf Date: Tue, 21 Apr 2020 13:59:36 -0700 Subject: [PATCH] Fix comment --- physical/raft/fsm.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/physical/raft/fsm.go b/physical/raft/fsm.go index 6669dd006052f..338b785092c96 100644 --- a/physical/raft/fsm.go +++ b/physical/raft/fsm.go @@ -646,10 +646,9 @@ func (f *FSM) Restore(r io.ReadCloser) error { b := tx.Bucket(dataBucketName) s := new(pb.StorageEntry) - // Commit in batches of 50k. Bolt wont split pages until commit and - // holds - // we do incremental writes. This is safe since we have a write lock - // on the fsm's lock. + // Commit in batches of 50k. Bolt holds all the data in memory and + // doesn't split the pages until commit so we do incremental writes. + // This is safe since we have a write lock on the fsm's lock. for i := 0; i < 50000; i++ { err := protoReader.ReadMsg(s) if err != nil {