Ignore eperm on status cursors and empty cursors (for now).
This commit is contained in:
parent
5d3cb9997a
commit
e9145c344c
1 changed files with 3 additions and 0 deletions
|
@ -333,6 +333,7 @@ is_empty(#state{is_empty_cursor=Cursor}) ->
|
|||
wterl:cursor_reset(Cursor),
|
||||
case wterl:cursor_next(Cursor) of
|
||||
not_found -> true;
|
||||
{error, {eperm, _}} -> false; % TODO: review/fix this logic
|
||||
_ -> false
|
||||
end.
|
||||
|
||||
|
@ -343,6 +344,8 @@ status(#state{status_cursor=Cursor}) ->
|
|||
case fetch_status(Cursor) of
|
||||
{ok, Stats} ->
|
||||
Stats;
|
||||
{error, {eperm, _}} -> % TODO: review/fix this logic
|
||||
[];
|
||||
_ ->
|
||||
[]
|
||||
end.
|
||||
|
|
Loading…
Reference in a new issue