From: Kurt Roeckx Date: Mon, 14 Sep 2009 17:19:47 +0000 (+0000) Subject: If we only ask for info of 1 record, we might be updating it, lock the record. X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=162274bfcba6861853de42dc36e51cf5e5ed7815 If we only ask for info of 1 record, we might be updating it, lock the record. --- diff --git a/bin/wanna-build b/bin/wanna-build index ec0ea58..785effb 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -2421,7 +2421,8 @@ sub user_table_name { sub get_source_info { my $name = shift; my $pkg = $dbh->selectrow_hashref('SELECT * FROM ' . - table_name() . ' WHERE package = ? AND distribution = ?', + table_name() . ' WHERE package = ? AND distribution = ?' . + 'FOR UPDATE', undef, $name, $distribution); return $pkg; }