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
Anthony Romano authored and gyuho committed Jun 20, 2017
1 parent 9388a27 commit a032b3b
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 @@ -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
}

0 comments on commit a032b3b

Please sign in to comment.