mirror of https://github.com/django/django.git
Refs #33616 -- Updated BaseDatabaseWrapper.run_on_commit comment.
This commit is contained in:
parent
982a970251
commit
3a084831e2
|
@ -107,8 +107,9 @@ class BaseDatabaseWrapper:
|
||||||
self._thread_ident = _thread.get_ident()
|
self._thread_ident = _thread.get_ident()
|
||||||
|
|
||||||
# A list of no-argument functions to run when the transaction commits.
|
# A list of no-argument functions to run when the transaction commits.
|
||||||
# Each entry is an (sids, func) tuple, where sids is a set of the
|
# Each entry is an (sids, func, robust) tuple, where sids is a set of
|
||||||
# active savepoint IDs when this function was registered.
|
# the active savepoint IDs when this function was registered and robust
|
||||||
|
# specifies whether it's allowed for the function to fail.
|
||||||
self.run_on_commit = []
|
self.run_on_commit = []
|
||||||
|
|
||||||
# Should we run the on-commit hooks the next time set_autocommit(True)
|
# Should we run the on-commit hooks the next time set_autocommit(True)
|
||||||
|
|
Loading…
Reference in New Issue