fix(to issue#455): fix a typo (#456)

I am recently debugging at 3B. And when I am reading the Destroy function at file kv/raftstore/peer.go, I found that there is a comment "write kv rocksdb first in case of restart happen between two write".
The previous lab in tinykv seems never mention about rocksdb, while the TiKV mentioned. So I think there is a typo, and this comment should be modified to "write kv badgerDB first in case of restart happen between two write".
This commit is contained in:
Elephas 2024-03-15 10:04:49 +08:00 committed by GitHub
parent 86a0b62a6c
commit 1338f1b099
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,7 +209,7 @@ func (p *peer) Destroy(engine *engine_util.Engines, keepData bool) error {
return err
}
meta.WriteRegionState(kvWB, region, rspb.PeerState_Tombstone)
// write kv rocksdb first in case of restart happen between two write
// write kv badgerDB first in case of restart happen between two write
if err := kvWB.WriteToDB(engine.Kv); err != nil {
return err
}