mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-25 20:30:30 +08:00
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:
parent
86a0b62a6c
commit
1338f1b099
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user