From bf41206aeb897a136380e8ec2f91ba1a92819e24 Mon Sep 17 00:00:00 2001 From: Tobias Grieger Date: Fri, 16 Dec 2022 21:26:23 +0100 Subject: [PATCH] logstore: resolve a comment Epic: none Release note: None --- pkg/kv/kvserver/logstore/logstore.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/kv/kvserver/logstore/logstore.go b/pkg/kv/kvserver/logstore/logstore.go index d27ca95322c0..830cc6898980 100644 --- a/pkg/kv/kvserver/logstore/logstore.go +++ b/pkg/kv/kvserver/logstore/logstore.go @@ -104,9 +104,8 @@ type LogStore struct { } func newStoreEntriesBatch(eng storage.Engine) storage.Batch { - // TODO(pavelkalinnikov): Doesn't this comment contradict the code? - // Use a more efficient write-only batch because we don't need to do any - // reads from the batch. Any reads are performed on the underlying DB. + // Use an unindexed batch because we don't need to read our writes, and + // it is more efficient. return eng.NewUnindexedBatch(false /* writeOnly */) }