diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-10-24 10:11:12 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-10-24 13:45:50 -0400 |
commit | 5b36e169ea74d2345545169124c31cdb6c319408 (patch) | |
tree | 776025d85f3b33fafbb36cb9f47bd7ea44335a1a /releasenotes | |
parent | baa0a045b51fd261fdcef6f7dfafe8e823f26e7a (diff) | |
download | oslo-db-5b36e169ea74d2345545169124c31cdb6c319408.tar.gz |
Add "is_started" flag to enginefacade
Some module reloading scenarios such as that which occurs
within mod_wsgi mean that an existing module-level enginefacade
is already in the "started" state, however initialization
routines from the calling application may still attempt to
call the ``.configure`` method. Add a new flag is_started
to both _TransactionContextManager and _TransactionFactory so
that calling code can check for this state ahead of time;
additionally, promote the TypeError raised to a specific subclass
enginefacade.AlreadyStartedError to allow for better optimistic
schemes.
Change-Id: I2f5a9e35c2fae0c28b78beef3dcd2c4794362766
References: I704196711d30c1124e713ac31111a8ea6fa2f1ba
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/add_facade_started-14f9bc34fac89371.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/releasenotes/notes/add_facade_started-14f9bc34fac89371.yaml b/releasenotes/notes/add_facade_started-14f9bc34fac89371.yaml new file mode 100644 index 0000000..52154f2 --- /dev/null +++ b/releasenotes/notes/add_facade_started-14f9bc34fac89371.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + Added new ``.is_started`` boolean flag to enginefacade context manager + and factory objects, so that double-configure scenarios can be prevented + by calling code. Additionally, the ``TypeError`` raised when configure + is called after the factory is started is now a specific subclass + ``enginefacade.AlreadyStartedError``. |