For now we ignore eperm and ebusy error returns on fold and drop.

This commit is contained in:
Gregory Burd 2013-04-19 15:09:29 -04:00
parent b936b99531
commit 5d3cb9997a

View file

@ -296,7 +296,14 @@ fold_objects(FoldObjectsFun, Acc, Opts, #state{connection=Connection, table=Tabl
{break, AccFinal} ->
AccFinal
after
ok = wterl:cursor_close(Cursor)
case wterl:cursor_close(Cursor) of
ok ->
ok;
{error, {eperm, _}} -> %% TODO: review/fix
ok;
{error, _}=E ->
E
end
end
end
end,
@ -313,6 +320,8 @@ drop(#state{connection=Connection, table=Table}=State) ->
case wterl:drop(Connection, Table) of
ok ->
{ok, State};
{error, {ebusy, _}} -> %% TODO: review/fix
{ok, State};
Error ->
{error, Error, State}
end.