diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-07-15 18:01:55 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 01:24:25 -0400 |
commit | d17def4f873f3d333c5b16242535b68ccbb6d926 (patch) | |
tree | cc118d3a8cd3002f00a522f926f0ad6d942009cd | |
parent | 49de47fb50998ee4d266ad046d3b9c437fe64393 (diff) |
don't use deleted nodes
-rw-r--r-- | src/mem3_nodes.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem3_nodes.erl b/src/mem3_nodes.erl index 0214ed03..6cbf3d9a 100644 --- a/src/mem3_nodes.erl +++ b/src/mem3_nodes.erl @@ -73,6 +73,8 @@ initialize_nodelist() -> first_fold(#full_doc_info{id = <<"_design/", _/binary>>}, _, Acc) -> {ok, Acc}; +first_fold(#full_doc_info{deleted=true}, _, Acc) -> + {ok, Acc}; first_fold(#full_doc_info{id=Id}, _, Acc) -> {ok, [mem3_util:to_atom(Id) | Acc]}. |