You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/06 17:43:34 UTC

[03/12] couch-index commit: updated refs/heads/import-rcouch to 4a5a0e3

Expose get_compactor_pid/1


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/7a61bc8a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/tree/7a61bc8a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/diff/7a61bc8a

Branch: refs/heads/import-rcouch
Commit: 7a61bc8a0955af710222abed05559a866c764a87
Parents: 6c6ecdb
Author: Robert Newson <rn...@apache.org>
Authored: Tue Aug 20 12:32:29 2013 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Aug 20 12:32:36 2013 +0100

----------------------------------------------------------------------
 src/couch_index.erl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/blob/7a61bc8a/src/couch_index.erl
----------------------------------------------------------------------
diff --git a/src/couch_index.erl b/src/couch_index.erl
index 5bf322e..df004b4 100644
--- a/src/couch_index.erl
+++ b/src/couch_index.erl
@@ -16,7 +16,7 @@
 
 %% API
 -export([start_link/1, stop/1, get_state/2, get_info/1]).
--export([compact/1, compact/2]).
+-export([compact/1, compact/2, get_compactor_pid/1]).
 -export([config_change/3]).
 
 %% gen_server callbacks
@@ -67,6 +67,9 @@ compact(Pid, Options) ->
     end.
 
 
+get_compactor_pid(Pid) ->
+    gen_server:call(Pid, get_compactor_pid).
+
 config_change("query_server_config", "commit_freq", NewValue) ->
     ok = gen_server:cast(?MODULE, {config_update, NewValue}).