summaryrefslogtreecommitdiff
path: root/docs/internals
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2025-01-14 19:56:28 -0500
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 15:36:57 +0100
commit6cfe00ee438111af38f1e414bd01976e23b39715 (patch)
treedfc9757bee96578c46287ee1e47730a8554e88f6 /docs/internals
parentde9f46d7074a948d781b31476bb12a3ed017c8c0 (diff)
Refs #29499 -- Fixed race condition in update_or_create() test.
The usage of time.sleep() could result in the update_or_create() thread winning the race to create the row if the backend takes a while to create a new connection in the main thread. Relying on threading.Event ensures that the flow of execution is systematically yield back and forth between the main thread and the thread in charge of performing the background update_or_create().
Diffstat (limited to 'docs/internals')
0 files changed, 0 insertions, 0 deletions