You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2013/09/09 11:53:43 UTC

[23/50] [abbrv] git commit: updated refs/heads/1867-feature-plugins to 8aad450

Expose get_compactor_pid/1


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

Branch: refs/heads/1867-feature-plugins
Commit: b5c044f3161043ff236176b4ce93ef7bec7af532
Parents: b18cdca
Author: Robert Newson <rn...@apache.org>
Authored: Tue Aug 20 12:32:29 2013 +0100
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Mon Sep 9 11:16:43 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/b5c044f3/src/couch_index/src/couch_index.erl
----------------------------------------------------------------------
diff --git a/src/couch_index/src/couch_index.erl b/src/couch_index/src/couch_index.erl
index 5bf322e..df004b4 100644
--- a/src/couch_index/src/couch_index.erl
+++ b/src/couch_index/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}).