Skip to content

Commit e852630

Browse files
author
Richard Jones
committed
mysql backend wasn't locking tracker
1 parent d7eb231 commit e852630

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
2004-05-17 0.6.10
5+
Fixed:
6+
- mysql backend wasn't locking tracker
7+
8+
49
2004-04-18 0.6.9
510
Fixed:
611
- paging in classhelp popup was broken

doc/announcement.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
I'm pleased to announce Roundup 0.6.9, a maintenance release which fixes
2-
some bugs:
1+
I'm pleased to announce Roundup 0.6.10, a maintenance release which fixes
2+
a single bug in the MySQL backend:
33

4-
- paging in classhelp popup was broken
5-
- socket timeout error logging can fail
6-
- hyperlink designators in message display (sf bug 931828)
7-
- don't match retired items in RDBMS stringFind
4+
- mysql backend wasn't locking tracker
85

96
If you're upgrading from an older version of Roundup you *must* follow
107
the "Software Upgrade" guidelines given in the maintenance documentation.
118

129
Note that the Zope interface still doesn't work - it is fixed in the 0.7
13-
development codebase.
10+
release.
1411

1512
Roundup requires python 2.1.3 or later for correct operation. Python 2.3.1
1613
or later is strongly recommended.

roundup/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: __init__.py,v 1.25.2.9 2004-04-18 06:38:22 richard Exp $
18+
# $Id: __init__.py,v 1.25.2.10 2004-05-17 00:47:29 richard Exp $
1919

2020
''' Roundup - issue tracking for knowledge workers.
2121
@@ -67,6 +67,6 @@
6767
much prettier cake :)
6868
'''
6969

70-
__version__ = '0.6.9'
70+
__version__ = '0.6.10'
7171

7272
# vim: set filetype=python ts=4 sw=4 et si

roundup/backends/back_mysql.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ def open_connection(self):
8484
if not db_exists(self.config):
8585
db_create(self.config)
8686

87+
# lock the tracker
88+
dbdir = os.path.join(self.config.DATABASE, 'db')
89+
lockfilenm = dbdir[:-3] + 'lck'
90+
self.lockfile = locking.acquire_lock(lockfilenm)
91+
self.lockfile.write(str(os.getpid()))
92+
self.lockfile.flush()
93+
8794
db = getattr(self.config, 'MYSQL_DATABASE')
8895
try:
8996
self.conn = MySQLdb.connect(*db)

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: setup.py,v 1.55.2.11 2004-04-18 06:38:22 richard Exp $
19+
# $Id: setup.py,v 1.55.2.12 2004-05-17 00:47:28 richard Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -188,11 +188,9 @@ def main():
188188
command-line, web and e-mail interfaces. It is based on the winning design
189189
from Ka-Ping Yee in the Software Carpentry "Track" design competition.
190190
191-
The 0.6.9 release fixes some bugs:
192-
- paging in classhelp popup was broken
193-
- socket timeout error logging can fail
194-
- hyperlink designators in message display (sf bug 931828)
195-
- don't match retired items in RDBMS stringFind
191+
The 0.6.10 release fixes some bugs:
192+
193+
- mysql backend wasn't locking tracker
196194
''',
197195
author = "Richard Jones",
198196
author_email = "[email protected]",

0 commit comments

Comments
 (0)