From ca361b976bcec4fa9b6f956ed17096dde068ac90 Mon Sep 17 00:00:00 2001 From: UENISHI Kota Date: Tue, 30 Jun 2015 15:15:21 +0900 Subject: [PATCH] Add get_manifest_bag handle_call to riak client --- src/riak_cs_multibag_riak_client.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/riak_cs_multibag_riak_client.erl b/src/riak_cs_multibag_riak_client.erl index f19a88a..a57727a 100644 --- a/src/riak_cs_multibag_riak_client.erl +++ b/src/riak_cs_multibag_riak_client.erl @@ -117,6 +117,8 @@ handle_call({set_manifest_bag, ManifestBagId}, _From, handle_call({set_manifest_bag, RequestedBagId}, _From, #state{manifest_bag=ManifestBagId} = State) -> {reply, {error, {manifest_bag_already_set, RequestedBagId, ManifestBagId}}, State}; +handle_call(get_manifest_bag, _From, #state{manifest_bag=ManifestBagId} = State) -> + {reply, {ok, ManifestBagId}, State}; handle_call({set_manifest, {UUID, Manifest}}, _From, #state{manifest=uninitialized} = State) ->