mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-09 00:53:08 +00:00
fix occasional deadlock
This commit is contained in:
parent
5c2cc57ccc
commit
4ff162e0c5
@ -265,7 +265,8 @@ proc queryTask[DB](
|
||||
# otherwise manually an set empty ok result
|
||||
ctx[].res.ok (KeyId.none, DataBuffer(), )
|
||||
discard ctx[].signal.fireSync()
|
||||
discard nextSignal.waitSync().get()
|
||||
if not nextSignal.waitSync(1.seconds).get():
|
||||
raise newException(DeadThreadDefect, "query task timeout; possible deadlock!")
|
||||
|
||||
var handle = handleRes.get()
|
||||
for item in handle.iter():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user