Skip to content

Commit

Permalink
v3rpc: treat nil txn request op as error
Browse files Browse the repository at this point in the history
Fixes #7889
  • Loading branch information
heyitsanthony committed May 31, 2017
1 parent 1467b45 commit d8210da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcdserver/api/v3rpc/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,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
}

0 comments on commit d8210da

Please sign in to comment.