mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 13:47:26 +03:00
UBERF-7682: Fix mongo cursor on backup (#6145)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
5f90d7821d
commit
068520b211
@ -845,6 +845,7 @@ abstract class MongoAdapterBase implements DbAdapter {
|
||||
let d = await ctx.with('next', { mode }, async () => await iterator.next())
|
||||
if (d == null && mode === 'hashed') {
|
||||
mode = 'non-hashed'
|
||||
await iterator.close()
|
||||
iterator = coll.find({ '%hash%': { $in: ['', null] } })
|
||||
d = await ctx.with('next', { mode }, async () => await iterator.next())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user