[Erp5-report] r45841 luke - /erp5/trunk/utils/Products.TIDStorage/Products/TIDStorage/bin/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 5 10:27:27 CEST 2011
Author: luke
Date: Thu May 5 10:27:27 2011
New Revision: 45841
URL: http://svn.erp5.org?rev=45841&view=rev
Log:
globalise tid_file
Modified:
erp5/trunk/utils/Products.TIDStorage/Products/TIDStorage/bin/tidstorage.py
Modified: erp5/trunk/utils/Products.TIDStorage/Products/TIDStorage/bin/tidstorage.py
URL: http://svn.erp5.org/erp5/trunk/utils/Products.TIDStorage/Products/TIDStorage/bin/tidstorage.py?rev=45841&r1=45840&r2=45841&view=diff
==============================================================================
--- erp5/trunk/utils/Products.TIDStorage/Products/TIDStorage/bin/tidstorage.py [utf8] (original)
+++ erp5/trunk/utils/Products.TIDStorage/Products/TIDStorage/bin/tidstorage.py [utf8] Thu May 5 10:27:27 2011
@@ -312,6 +312,7 @@ class TIDStorage:
"""
Also transfers from self._transcient to self._storage.
"""
+ global tid_file
assert self._storage_id_lock.acquire(False)
try:
# Update transaction_id -> storage_id_list and retrieve storage_id_list
@@ -701,8 +702,10 @@ if options.setuid is not None:
os.setuid(options.setuid)
tid_storage = None
+tid_file = None
def main():
global tid_storage
+ global tid_file
tid_storage = TIDStorage(tid_file_path=options.status_file,
burst_period=options.burst_period,
full_dump_period=options.full_dump_period)
More information about the Erp5-report
mailing list