diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-09-22 12:34:52 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-09-22 13:45:58 -0400 |
commit | 7daffffafc8940a5097cdd33724eff1efaa33d1a (patch) | |
tree | 0accaf283d088f42073da42ed35bccc43c230d89 /doc/source/index.rst | |
parent | d87228c311a820a483b2db9171e70c93097085ee (diff) | |
download | oslo-db-7daffffafc8940a5097cdd33724eff1efaa33d1a.tar.gz |
Add support for pickling enginefacade context objects
In order to pickle a context object which refers
to an active _TransactionContextTLocal, we have to
use __reduce__ so that no database, engine, or session
state is pickled, and only a constructor remains. Upon
unpickling, the constructor will install a new, empty
_TransactionContextTLocal on the new context, as is
appropriate since this is a totally different context object
than the original one.
Change-Id: Ia50cf10ff91a013ee24773c095a3df69ae06847b
Diffstat (limited to 'doc/source/index.rst')
0 files changed, 0 insertions, 0 deletions