Skip to content

Commit

Permalink
Fix KVSGet method to handle QueryOptions properly (#13344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris S. Kim authored and eculver committed Jun 3, 2022
1 parent e57f76a commit b516b03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/13344.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
kvs: Fixed a bug where query options were not being applied to KVS.Get RPC operations.
```
2 changes: 1 addition & 1 deletion agent/kvs_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (s *HTTPHandlers) KVSGet(resp http.ResponseWriter, req *http.Request, args

// Make the RPC
var out structs.IndexedDirEntries
if err := s.agent.RPC(method, &args, &out); err != nil {
if err := s.agent.RPC(method, args, &out); err != nil {
return nil, err
}
setMeta(resp, &out.QueryMeta)
Expand Down

0 comments on commit b516b03

Please sign in to comment.