Bug 10582 - Event loops can run during LDB transactions
Summary: Event loops can run during LDB transactions
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-02 07:56 UTC by Andrew Bartlett
Modified: 2014-10-13 10:39 UTC (History)
1 user (show)

See Also:


Attachments

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.