mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-17 16:58:50 +00:00
fix 'unable to lookup event by levId' crash
This happened when a non-indexOnly scan was paused and then one of the buffered levIds was deleted or replaced before the scan resumed
This commit is contained in:
@ -265,7 +265,8 @@ struct DBScan : NonCopyable {
|
||||
if (f.doesMatchTimes(ev.created())) doSend = true;
|
||||
} else {
|
||||
approxWork += 10;
|
||||
if (f.doesMatch(lookupEventByLevId(txn, levId).flat_nested())) doSend = true;
|
||||
auto view = env.lookup_Event(txn, levId);
|
||||
if (view && f.doesMatch(view->flat_nested())) doSend = true;
|
||||
}
|
||||
|
||||
if (doSend) {
|
||||
|
Reference in New Issue
Block a user