couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/2] couch-mrview commit: updated refs/heads/master to def55ca
Date Wed, 12 Aug 2015 15:58:04 GMT
Use closure funs to specify transformer functions


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

Branch: refs/heads/master
Commit: def55ca6a731387fb25a3e5fb524dc0bf56ff040
Parents: 62473c3
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Aug 5 15:39:42 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Wed Aug 5 15:39:42 2015 -0700

----------------------------------------------------------------------
 src/couch_mrview_updater.erl | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/def55ca6/src/couch_mrview_updater.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_updater.erl b/src/couch_mrview_updater.erl
index 1346707..0745c2a 100644
--- a/src/couch_mrview_updater.erl
+++ b/src/couch_mrview_updater.erl
@@ -472,6 +472,10 @@ update_task(NumChanges) ->
 
 
 maybe_notify(State, View, KVs, ToRem) ->
-    Updated = [Key || {{Key, _}, _} <- KVs],
-    Removed = [Key || {Key, _DocId} <- ToRem],
+    Updated = fun() ->
+        [Key || {{Key, _}, _} <- KVs]
+    end,
+    Removed = fun() ->
+        [Key || {Key, _DocId} <- ToRem]
+    end,
     couch_index_plugin:index_update(State, View, Updated, Removed).


Mime
View raw message