You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 11:12:15 UTC
[27/50] fabric commit: updated refs/heads/windsor-merge-121 to 79e6e2f
Add fabric_dict:fetch_keys/1
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/03086f38
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/03086f38
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/03086f38
Branch: refs/heads/windsor-merge-121
Commit: 03086f3833745888812c3bd96c92df80094dbfd5
Parents: 44185ed
Author: Paul J. Davis <pa...@gmail.com>
Authored: Fri Oct 4 13:16:03 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Jul 31 13:44:11 2014 +0100
----------------------------------------------------------------------
src/fabric_dict.erl | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/03086f38/src/fabric_dict.erl
----------------------------------------------------------------------
diff --git a/src/fabric_dict.erl b/src/fabric_dict.erl
index 20700c0..f88ca97 100644
--- a/src/fabric_dict.erl
+++ b/src/fabric_dict.erl
@@ -22,6 +22,9 @@ init(Keys, InitialValue) ->
is_key(Key, Dict) ->
orddict:is_key(Key, Dict).
+fetch_keys(Dict) ->
+ orddict:fetch_keys(Dict).
+
decrement_all(Dict) ->
[{K,V-1} || {K,V} <- Dict].