]> git.donarmstrong.com Git - wannabuild.git/commitdiff
wanna-build: lock_table: limit row lock to same distribution
authorPhilipp Kern <pkern@debian.org>
Sun, 19 Jun 2011 19:51:48 +0000 (19:51 +0000)
committerPhilipp Kern <pkern@debian.org>
Sun, 19 Jun 2011 19:51:48 +0000 (19:51 +0000)
bin/wanna-build

index 9cfa853af1ff1a9fb7e4a14e79fd4a83629c24cf..288d3f7722139f93fce1802f0e7c4ce69a74bcbf 100755 (executable)
@@ -2083,7 +2083,7 @@ sub add_user_info {
 sub lock_table {
         return if $simulate;
        $dbh->do('SELECT 1 FROM ' . table_name() .
-               ' FOR UPDATE', undef) or die $dbh->errstr;
+               ' WHERE distribution = ? FOR UPDATE', undef, $distribution) or die $dbh->errstr;
 }
 
 sub parse_argv {