Bug 10582 - Event loops can run during LDB transactions
Event loops can run during LDB transactions
Product: Samba 4.1 and newer
Classification: Unclassified
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2014-05-02 07:56 UTC by Andrew Bartlett
Modified: 2014-10-13 10:39 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bartlett 2014-05-02 07:56:34 UTC
If an event fires during an LDB transaction, an unrelated operation can occur during the transaction, and if the transaction were to be cancelled, there would be a silent rollback (despite the client having been indicated success).  Additionally, other processes could be called via IRPC that need to operate on the database but are locked out due to the ongoing transaction.

This patch avoids that by creating a private event loop during transactions, so no unexpected operations fire.
Comment 1 Stefan Metzmacher 2014-07-17 07:02:35 UTC
This is fixed with commit bdd363a92d136b0c0dbb86d1bf77f7bc48a6b206 in v4-1-test
and as 401f555c28aee861385b75c371b5f44cded1d391 in master.