mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-01-14 14:20:16 +08:00
Fix region error (#139)
* fix key not found and close iter Signed-off-by: Connor1996 <zbk602423539@gmail.com> * fix region error Signed-off-by: Connor1996 <zbk602423539@gmail.com> Co-authored-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
parent
2fdc5773bd
commit
84e464263b
@ -63,7 +63,7 @@ func WriteKindFromProto(op kvrpcpb.Op) WriteKind {
|
|||||||
return WriteKindDelete
|
return WriteKindDelete
|
||||||
case kvrpcpb.Op_Rollback:
|
case kvrpcpb.Op_Rollback:
|
||||||
return WriteKindRollback
|
return WriteKindRollback
|
||||||
|
default:
|
||||||
|
panic("unsupported type")
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user