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),
|
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.
|
||||||
|
|
Loading…
Reference in a new issue