diff --git a/src/riak_kv_wterl_backend.erl b/src/riak_kv_wterl_backend.erl index 378da4f..65f1adf 100644 --- a/src/riak_kv_wterl_backend.erl +++ b/src/riak_kv_wterl_backend.erl @@ -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.