Skip to content

Commit 4ead0b8

Browse files
authored
Merge pull request #764 from basho/features/lrb/use-gpb
Use GPB protobuf library.
2 parents 88eee5a + ca45179 commit 4ead0b8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

rebar.config

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
{xref_queries, [{"(XC - UC) || (XU - X - B - cluster_info : Mod)", []}]}.
1010

1111
{deps, [
12-
{lager, ".*", {git, "git://github.com/basho/lager.git", {tag, "3.2.2"}}},
13-
{ranch, "0.4.0-p1", {git, "git://github.com/basho/ranch.git", {tag, "0.4.0-p1"}}},
14-
{ebloom, ".*", {git, "git://github.com/basho/ebloom.git", {tag, "2.0.0"}}},
15-
{riak_kv, ".*", {git, "git://github.com/basho/riak_kv.git", {branch, "develop"}}},
16-
{riak_repl_pb_api, ".*", {git, "[email protected]:basho/riak_repl_pb_api.git", {tag, "2.4.0"}}}
12+
{lager, ".*", {git, "https://github.com/basho/lager.git", {tag, "3.2.2"}}},
13+
{ranch, "0.4.0-p1", {git, "https://github.com/basho/ranch.git", {tag, "0.4.0-p1"}}},
14+
{ebloom, ".*", {git, "https://github.com/basho/ebloom.git", {tag, "2.0.0"}}},
15+
{riak_kv, ".*", {git, "https://github.com/basho/riak_kv.git", {branch, "develop"}}},
16+
{riak_repl_pb_api, ".*", {git, "[email protected]:basho/riak_repl_pb_api.git", {branch, "develop"}}}
1717
]}.
1818

1919
{edoc_opts, [{preprocess, true}]}.

src/riak_repl_pb_get.erl

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ decode(?PB_MSG_GET_CLUSTER_ID, <<>>) ->
5656
encode(#rpbgetresp{} = Msg) ->
5757
{ok, riak_pb_codec:encode(Msg)};
5858
encode(#rpbreplgetclusteridresp{} = Msg) ->
59-
{ok,
60-
[?PB_MSG_RESP_CLUSTER_ID|riak_repl_pb:encode_rpbreplgetclusteridresp(Msg)]}.
59+
Resp = riak_repl_pb:encode_rpbreplgetclusteridresp(Msg),
60+
{ok, [?PB_MSG_RESP_CLUSTER_ID, Resp]}.
6161

6262
%% Process Protocol Buffer Requests
6363
%%
@@ -68,7 +68,7 @@ process(#rpbreplgetclusteridreq{}, State) ->
6868
ClusterId = lists:flatten(
6969
io_lib:format("~p", [riak_core_ring:cluster_name(Ring)])),
7070
lager:debug("Repl PB: returning cluster id ~p", [ClusterId]),
71-
{reply, #rpbreplgetclusteridresp{cluster_id = ClusterId}, State};
71+
{reply, #rpbreplgetclusteridresp{cluster_id = list_to_binary(ClusterId)}, State};
7272
%% @doc Return Key/Value pair, derived from the KV version
7373
process(#rpbreplgetreq{bucket=B, key=K, r=R0, pr=PR0, notfound_ok=NFOk,
7474
basic_quorum=BQ, if_modified=VClock,

0 commit comments

Comments
 (0)