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:
Connor 2020-03-27 09:40:13 +08:00
parent 2fdc5773bd
commit 84e464263b

View File

@ -63,7 +63,7 @@ func WriteKindFromProto(op kvrpcpb.Op) WriteKind {
return WriteKindDelete
case kvrpcpb.Op_Rollback:
return WriteKindRollback
default:
panic("unsupported type")
}
return -1
}