summaryrefslogtreecommitdiff
path: root/src/dreyfus/src/dreyfus_fabric_cleanup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/dreyfus/src/dreyfus_fabric_cleanup.erl')
-rw-r--r--src/dreyfus/src/dreyfus_fabric_cleanup.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dreyfus/src/dreyfus_fabric_cleanup.erl b/src/dreyfus/src/dreyfus_fabric_cleanup.erl
index b5e030db0..2840a2f2d 100644
--- a/src/dreyfus/src/dreyfus_fabric_cleanup.erl
+++ b/src/dreyfus/src/dreyfus_fabric_cleanup.erl
@@ -53,12 +53,12 @@ cleanup_local_purge_doc(DbName, ActiveSigs) ->
end, [], LocalShards),
DeadDirs = DirList -- ActiveDirs,
- lists:foldl(fun(IdxDir) ->
+ lists:foreach(fun(IdxDir) ->
Sig = dreyfus_util:get_signature_from_idxdir(IdxDir),
case Sig of undefined -> ok; _ ->
DocId = dreyfus_util:get_local_purge_doc_id(Sig),
LocalShards = mem3:local_shards(DbName),
- lists:foldl(fun(LS, _AccOuter) ->
+ lists:foreach(fun(LS) ->
ShardDbName = LS#shard.name,
{ok, ShardDb} = couch_db:open_int(ShardDbName, []),
case couch_db:open_doc(ShardDb, DocId, []) of
@@ -69,6 +69,6 @@ cleanup_local_purge_doc(DbName, ActiveSigs) ->
ok
end,
couch_db:close(ShardDb)
- end, [], LocalShards)
+ end, LocalShards)
end
- end, [], DeadDirs).
+ end, DeadDirs).