Skip to content

Commit

Permalink
chore: add check for DtKV.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Jun 21, 2024
1 parent 3fc81d7 commit 94a9778
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ private Object exec0(long index, RaftInput input, KvStatus kvStatus) {
* @see com.github.dtprj.dongting.raft.server.RaftGroup#getLeaseReadIndex(DtTime)
*/
public byte[] get(long index, String key) {
KvStatus kvStatus = this.kvStatus;
ensureRunning(kvStatus);
return kvStatus.kvImpl.get(index, key);
}

Expand Down

0 comments on commit 94a9778

Please sign in to comment.