Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Call maybe_start_keeper for couch_epi_data_source
COUCHDB-2796
  • Loading branch information
iilyak committed Sep 2, 2015
1 parent fa12608 commit 7f32e4f48d129688f89bfe863be2a33d08e5c46e
Showing 1 changed file with 5 additions and 0 deletions.
@@ -54,6 +54,7 @@ childspec(Id, App, EpiKey, Locator, Options) ->
}.

start_link(SubscriberApp, {epi_key, Key}, Src, Options) ->
maybe_start_keeper(Key),
{ok, Locator} = locate(SubscriberApp, Src),
gen_server:start_link(?MODULE, [SubscriberApp, Locator, Key, Options], []).

@@ -189,3 +190,7 @@ current(Handle, Subscriber) ->
catch error:undef ->
[]
end.

maybe_start_keeper(Key) ->
Handle = couch_epi_data_gen:get_handle(Key),
couch_epi_module_keeper:maybe_start_keeper(couch_epi_data_gen, Handle).

0 comments on commit 7f32e4f

Please sign in to comment.