v3rpc: treat nil txn request op as error

Fixes #7889
This commit is contained in:
Anthony Romano 2017-05-31 12:39:52 -07:00 committed by Gyu-Ho Lee
parent 9388a27649
commit a032b3b914

View File

@ -252,8 +252,8 @@ func checkRequestOp(u *pb.RequestOp) error {
return checkDeleteRequest(uv.RequestDeleteRange)
}
default:
// empty op
return nil
// empty op / nil entry
return rpctypes.ErrGRPCKeyNotFound
}
return nil
}