Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Respond with not_implemented on purge_docs instead of crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
kocolosk committed Dec 9, 2010
1 parent 6b37835 commit 0a1f961
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fabric.erl
Expand Up @@ -24,7 +24,7 @@

% Documents
-export([open_doc/3, open_revs/4, get_missing_revs/2, update_doc/3,
update_docs/3, att_receiver/2]).
update_docs/3, purge_docs/2, att_receiver/2]).

% Views
-export([all_docs/4, changes/4, query_view/3, query_view/4, query_view/6,
Expand Down Expand Up @@ -170,6 +170,9 @@ update_docs(DbName, Docs, Options) ->
{aborted, PreCommitFailures}
end.

purge_docs(_DbName, _IdsRevs) ->
not_implemented.

%% @doc spawns a process to upload attachment data and
%% returns a function that shards can use to communicate
%% with the spawned middleman process
Expand Down

0 comments on commit 0a1f961

Please sign in to comment.