Author: davisp
Date: Wed Sep 21 00:33:36 2011
New Revision: 1173439
URL: http://svn.apache.org/viewvc?rev=1173439&view=rev
Log:
Remember to provide a 2-arity wrapper to udpate.
Expose the proper API to allow the compactor to use the updater to
top off a compaction when the view was udpated during compaction.
Modified:
couchdb/trunk/src/couch_index/src/couch_index_updater.erl
Modified: couchdb/trunk/src/couch_index/src/couch_index_updater.erl
URL:
http://svn.apache.org/viewvc/couchdb/trunk/src/couch_index/src/couch_index_updater.erl?rev=1173439&r1=1173438&r2=1173439&view=diff
==============================================================================
--- couchdb/trunk/src/couch_index/src/couch_index_updater.erl (original)
+++ couchdb/trunk/src/couch_index/src/couch_index_updater.erl Wed Sep 21
00:33:36 2011
@@ -15,7 +15,7 @@
%% API
--export([start_link/2, run/2, is_running/1, update/3, restart/2]).
+-export([start_link/2, run/2, is_running/1, update/2, restart/2]).
%% gen_server callbacks
-export([init/1, terminate/2, code_change/3]).
@@ -42,6 +42,10 @@ is_running(Pid) ->
gen_server:call(Pid, is_running).
+update(Mod, State) ->
+ update(nil, Mod, State).
+
+
restart(Pid, IdxState) ->
gen_server:call(Pid, {restart, IdxState}).