Skip to content

Commit

Permalink
v3rpc: treat nil txn request op as error
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano authored and Iwasaki Yudai committed Oct 5, 2017
1 parent b5c2e8e commit 21f6caf
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 21f6caf

Please sign in to comment.