File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,16 @@ var schema = [...]interface{}{
192192 // pertain to just one replica of a range. They are unreplicated and
193193 // unaddressable. The typical example is the Raft log. They all share
194194 // `LocalRangeIDPrefix` and `localRangeIDUnreplicatedInfix`.
195+ //
196+ // WARNING: when adding a new key in this section, decide whether it should be
197+ // classified as "raft" or "state machine" key, correspondingly to which
198+ // engine it resides in:
199+ //
200+ // - keys <= RangeTombstoneKey in this prefix are "state machine" engine keys
201+ // - keys > RangeTombstoneKey in this prefix are "raft" engine keys
202+ // - historical exception: RaftReplicaIDKey belongs to the state machine
203+ //
204+ // Failure to classify may result in replica state corruption in storage.
195205 localRangeIDUnreplicatedInfix , // "u"
196206 RangeTombstoneKey , // "rftb"
197207 RaftHardStateKey , // "rfth"
You can’t perform that action at this time.
0 commit comments