diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-15 08:51:31 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 01:06:31 -0400 |
commit | 8759d8d56b4214cb209563dabbfeb298e0afd21d (patch) | |
tree | da729b760c0e4732890d7b4d917d76ebfa72cf44 /src/dbs_cache.erl | |
parent | f26ad32b18809d81c9c01d6b007736eb0299d5f6 (diff) |
skip non-membership docs in dbs.couch
Diffstat (limited to 'src/dbs_cache.erl')
-rw-r--r-- | src/dbs_cache.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbs_cache.erl b/src/dbs_cache.erl index f4faab3a..1afb873b 100644 --- a/src/dbs_cache.erl +++ b/src/dbs_cache.erl @@ -66,7 +66,7 @@ cache_dbs() -> end. cache_map(Id, Props) -> - Map = couch_util:get_value(<<"map">>, Props), + Map = couch_util:get_value(<<"map">>, Props, []), lists:foreach(fun({[{<<"node">>,Node},{<<"b">>,Beg},{<<"e">>,End}]}) -> Part = #shard{ name = partitions:shard_name(Beg, Id), @@ -78,7 +78,7 @@ cache_map(Id, Props) -> end, Map). cache_nodes(Id, Props) -> - Nodes = couch_util:get_value(<<"nodes">>, Props), + Nodes = couch_util:get_value(<<"nodes">>, Props, []), lists:foreach(fun({[{<<"order">>,Order},{<<"node">>, Node},{<<"options">>,Opts}]}) -> ets:insert(memnodes, {Id, {Order, to_atom(Node), Opts}}) end, Nodes). |