pytdb: Check if the database is closed before we touch it
commitc92a5670e3d60decbc13bd8680de37184bc12815
authorAndrew Bartlett <abartlet@samba.org>
Mon, 16 Jul 2012 09:43:15 +0000 (16 19:43 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 16 Jul 2012 11:51:51 +0000 (16 13:51 +0200)
tree5d0987b2c12caba6235cd55c35f87cde0c784ad8
parenta8e88332a394f4a4c3e43b496738008fba39d39f
pytdb: Check if the database is closed before we touch it

If .close() has already been called, we have to play dead - the
self->ctx is just not valid any more, as we have been shut down to
allow some other part of Samba to open the tdb.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 16 13:51:52 CEST 2012 on sn-devel-104
lib/tdb/pytdb.c
lib/tdb/python/tests/simple.py