couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [1/2] couch-index commit: updated refs/heads/master to 14f579d
Date Thu, 01 Oct 2015 15:07:16 GMT
Repository: couchdb-couch-index
Updated Branches:
  refs/heads/master 6565cb961 -> 14f579dcd


Update to new couch_epi API


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/commit/20ab254c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/tree/20ab254c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/diff/20ab254c

Branch: refs/heads/master
Commit: 20ab254c51652ef72e1e28b591b83a390da27f1d
Parents: 6565cb9
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Mon Sep 28 09:51:35 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Mon Sep 28 09:51:35 2015 -0700

----------------------------------------------------------------------
 src/couch_index_epi.erl    | 49 +++++++++++++++++++++++++++++++++++++++++
 src/couch_index_server.erl |  1 -
 2 files changed, 49 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/blob/20ab254c/src/couch_index_epi.erl
----------------------------------------------------------------------
diff --git a/src/couch_index_epi.erl b/src/couch_index_epi.erl
new file mode 100644
index 0000000..946a590
--- /dev/null
+++ b/src/couch_index_epi.erl
@@ -0,0 +1,49 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+-module(couch_index_epi).
+
+-behaviour(couch_epi_plugin).
+
+-export([
+    app/0,
+    providers/0,
+    services/0,
+    data_subscriptions/0,
+    data_providers/0,
+    processes/0,
+    notify/3
+]).
+
+app() ->
+    couch_index.
+
+providers() ->
+    [].
+
+
+services() ->
+    [
+        {couch_index, couch_index_plugin}
+    ].
+
+data_subscriptions() ->
+    [].
+
+data_providers() ->
+    [].
+
+processes() ->
+    [].
+
+notify(_Key, _Old, _New) ->
+    ok.

http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/blob/20ab254c/src/couch_index_server.erl
----------------------------------------------------------------------
diff --git a/src/couch_index_server.erl b/src/couch_index_server.erl
index abb4b7a..ac2c609 100644
--- a/src/couch_index_server.erl
+++ b/src/couch_index_server.erl
@@ -38,7 +38,6 @@
 -record(st, {root_dir}).
 
 start_link() ->
-    couch_epi:register_service(couch_index),
     gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
 
 


Mime
View raw message