Fix KVSGet method to handle QueryOptions properly (#13344)
This commit is contained in:
parent
6ef38eaea7
commit
8a7dfbaa7d
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
kvs: Fixed a bug where query options were not being applied to KVS.Get RPC operations.
|
||||
```
|
|
@ -69,7 +69,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)
|
||||
|
|
Loading…
Reference in New Issue