Ignore eperm on status cursors and empty cursors (for now).

This commit is contained in:
Gregory Burd 2013-04-19 15:46:58 -04:00
parent 5d3cb9997a
commit e9145c344c

View file

@ -333,6 +333,7 @@ is_empty(#state{is_empty_cursor=Cursor}) ->
wterl:cursor_reset(Cursor), wterl:cursor_reset(Cursor),
case wterl:cursor_next(Cursor) of case wterl:cursor_next(Cursor) of
not_found -> true; not_found -> true;
{error, {eperm, _}} -> false; % TODO: review/fix this logic
_ -> false _ -> false
end. end.
@ -343,6 +344,8 @@ status(#state{status_cursor=Cursor}) ->
case fetch_status(Cursor) of case fetch_status(Cursor) of
{ok, Stats} -> {ok, Stats} ->
Stats; Stats;
{error, {eperm, _}} -> % TODO: review/fix this logic
[];
_ -> _ ->
[] []
end. end.