The port lock mechanism in XB test suite does not work

Reported by Alexey Kopytov on 2013-06-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Medium
Alexey Kopytov
2.0
Medium
Alexey Kopytov
2.1
Medium
Alexey Kopytov

Bug Description

The following code in the XB test suite which is supposed to lock ports atomically doesn't work as intended:

 if ! set -C > $lockfile
 then
     set +C
     # check if the process still exists
...

It should be (set -C; > $lockfile) to check and lock the file atomically.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers