Skip to content

Commit f75aa16

Browse files
committed
kvstorage: use LogEngine for StoreGossipKey
We decided that all Store-local keys are in the log engine. Epic: none Release note: none
1 parent a7d8420 commit f75aa16

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/kv/kvserver/stores.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ func (ls *Stores) ReadBootstrapInfo(bi *gossip.BootstrapInfo) error {
246246
ls.storeMap.Range(func(_ roachpb.StoreID, s *Store) bool {
247247
var storeBI gossip.BootstrapInfo
248248
var ok bool
249-
// TODO(sep-raft-log): probably state engine since it's random data
250-
// with no durability guarantees.
251-
ok, err = storage.MVCCGetProto(ctx, s.TODOEngine(), keys.StoreGossipKey(), hlc.Timestamp{}, &storeBI,
249+
ok, err = storage.MVCCGetProto(ctx, s.LogEngine(), keys.StoreGossipKey(), hlc.Timestamp{}, &storeBI,
252250
storage.MVCCGetOptions{})
253251
if err != nil {
254252
return false
@@ -297,7 +295,7 @@ func (ls *Stores) updateBootstrapInfoLocked(bi *gossip.BootstrapInfo) error {
297295
var err error
298296
ls.storeMap.Range(func(_ roachpb.StoreID, s *Store) bool {
299297
// TODO(sep-raft-log): see ReadBootstrapInfo.
300-
err = storage.MVCCPutProto(ctx, s.TODOEngine(), keys.StoreGossipKey(), hlc.Timestamp{}, bi, storage.MVCCWriteOptions{})
298+
err = storage.MVCCPutProto(ctx, s.LogEngine(), keys.StoreGossipKey(), hlc.Timestamp{}, bi, storage.MVCCWriteOptions{})
301299
return err == nil
302300
})
303301
return err

0 commit comments

Comments
 (0)