Skip to content

Commit

Permalink
Merge pull request #321 from basho/feature-az-tsqueryreq_allow_qbuf_r…
Browse files Browse the repository at this point in the history
…euse

make use of #tsqueryreq.allow_qbuf_reuse
  • Loading branch information
Brett Hazen committed Nov 11, 2016
2 parents a5ff1cb + 9a3dbe9 commit 6335e01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Expand Up @@ -13,7 +13,7 @@
]}.

{deps, [
{riak_pb, ".*", {git, "https://github.com/basho/riak_pb", {tag, "2.2.0.0"}}}
{riak_pb, ".*", {git, "https://github.com/basho/riak_pb", {tag, "2.2.0.1"}}}
]}.

{edoc_opts, [
Expand Down
4 changes: 3 additions & 1 deletion src/riakc_ts.erl
Expand Up @@ -82,8 +82,10 @@

query_common(Pid, Query, Interpolations, Cover, Options)
when is_pid(Pid) ->
AllowQBufReuse = (true == proplists:get_value(allow_qbuf_reuse, Options)),
Msg0 = riakc_ts_query_operator:serialize(Query, Interpolations),
Msg1 = Msg0#tsqueryreq{cover_context = Cover},
Msg1 = Msg0#tsqueryreq{cover_context = Cover,
allow_qbuf_reuse = AllowQBufReuse},
Msg = {Msg1, {msgopts, Options}},
Response = server_call(Pid, Msg),
riakc_ts_query_operator:deserialize(Response,
Expand Down

0 comments on commit 6335e01

Please sign in to comment.