File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
pkg/kv/kvserver/loqrecovery Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,8 @@ func applyReplicaUpdate(
317
317
318
318
hs .LeadEpoch = 0
319
319
320
+ // TODO(sep-raft-log): when raft and state machine engines are separated, this
321
+ // update must be written to the raft engine.
320
322
if err := sl .SetHardState (ctx , readWriter , hs ); err != nil {
321
323
return PrepareReplicaReport {}, errors .Wrap (err , "setting HardState" )
322
324
}
Original file line number Diff line number Diff line change @@ -192,6 +192,9 @@ func visitStoreReplicas(
192
192
if err != nil {
193
193
return err
194
194
}
195
+ // TODO(pav-kv): the LoQ recovery flow uses only the applied index, and the
196
+ // HardState.Commit loaded here is unused. Consider removing. Make sure this
197
+ // doesn't break compatibility for ReplicaInfo unmarshalling.
195
198
hstate , err := rsl .LoadHardState (ctx , raft )
196
199
if err != nil {
197
200
return err
You can’t perform that action at this time.
0 commit comments