fat-catTW commented on code in PR #71287:
URL: https://github.com/apache/airflow/pull/71287#discussion_r3764055572


##########
airflow-core/src/airflow/utils/sqlalchemy.py:
##########
@@ -635,10 +658,12 @@ class CommitProhibitorGuard:
     def __init__(self, session: Session):
         self.session = session
 
-    def _validate_commit(self, _):
+    def _validate_commit(self, session):
         if self.expected_commit:
             self.expected_commit = False
             return
+        if session.info.get(_EXPECTED_SAVEPOINT_COMMIT) and 
session.in_nested_transaction():

Review Comment:
   Thanks for the review.
   I added a short comment to make it explicit that the session-wide marker is 
only set around the synchronous savepoint release.
   Thanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to