couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject [43/50] git commit: Remember to provide a 2-arity wrapper to udpate.
Date Wed, 26 Oct 2011 18:05:33 GMT
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.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173439 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/1319-large-headers-are-corrupted
Commit: 2f818d1909d7bd038d820b8adda793ee1f1d7719
Parents: 40f345c
Author: Paul Joseph Davis <davisp@apache.org>
Authored: Wed Sep 21 00:33:36 2011 +0000
Committer: Paul Joseph Davis <davisp@apache.org>
Committed: Wed Sep 21 00:33:36 2011 +0000

----------------------------------------------------------------------
 src/couch_index/src/couch_index_updater.erl |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/2f818d19/src/couch_index/src/couch_index_updater.erl
----------------------------------------------------------------------
diff --git a/src/couch_index/src/couch_index_updater.erl b/src/couch_index/src/couch_index_updater.erl
index fb60136..853f3d1 100644
--- a/src/couch_index/src/couch_index_updater.erl
+++ b/src/couch_index/src/couch_index_updater.erl
@@ -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}).
 


Mime
View raw message