Bug TW-1288

- TW-1288 Added missing locking for task modifications (thanks to Kosta H,
          Ralph Bean, Adam Coddington).
This commit is contained in:
Paul Beckingham
2014-03-11 23:28:57 -04:00
parent 4ae8431f96
commit d52eebaa66
2 changed files with 5 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ Bugs
to Michele Vetturi). to Michele Vetturi).
- TD-45 Fix preprocessor define (thanks to Jochen Sprickerhof). - TD-45 Fix preprocessor define (thanks to Jochen Sprickerhof).
- TW-1282 incorrect URLs in man task-sync (thanks to Jeremiah Marks). - TW-1282 incorrect URLs in man task-sync (thanks to Jeremiah Marks).
- TW-1288 Added missing locking for task modifications (thanks to Kosta H,
Ralph Bean, Adam Coddington).
- #1511 sync init crashes if client certification file is empty or invalid - #1511 sync init crashes if client certification file is empty or invalid
(thanks to Marton Suranyi). (thanks to Marton Suranyi).
- #1508 Show command highlight configuration (thanks to Nicolas Appriou). - #1508 Show command highlight configuration (thanks to Nicolas Appriou).

View File

@@ -233,6 +233,9 @@ void TF2::commit ()
{ {
if (_file.open ()) if (_file.open ())
{ {
if (context.config.getBoolean ("locking"))
_file.waitForLock ();
// Truncate the file and rewrite. // Truncate the file and rewrite.
_file.truncate (); _file.truncate ();