From cdefee385f4588cff9c1de6be14d421be05b026e Mon Sep 17 00:00:00 2001 From: Eudyptula Date: Thu, 6 Aug 2009 23:02:49 -0400 Subject: Fix backend $build->get_owner() inside sql LOCK --- backend/backend.php | 2 +- depend | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/backend.php b/backend/backend.php index c35385e..7c5e54b 100755 --- a/backend/backend.php +++ b/backend/backend.php @@ -53,12 +53,12 @@ while (true) { $r=query('SELECT * FROM `builds` WHERE `status`=-128 ORDER BY `ctime` ASC LIMIT 1'); if ($r->rowCount()) { $build=new sql_build($r->fetch(PDO::FETCH_ASSOC)); - $owner=$build->get_owner(); $build->start=time(); $build->status=-1; $build->write(); query('UNLOCK TABLES'); debug('Starting build id='.$build->id); + $owner=$build->get_owner(); $file=null; try { if ($S['conf']['split_setup']) { diff --git a/depend b/depend index 4cd7265..e1b6963 100644 --- a/depend +++ b/depend @@ -1,4 +1,4 @@ ->=dev-lang/php-5.2.2 USE=pdo hash pcntl pcre cli mysqli apache2 curl ctype reflection posix +>=dev-lang/php-5.2.2 USE=pdo hash pcntl pcre cli mysql apache2 curl ctype reflection posix >=virtual/mysql-5 sys-apps/portage # In case you use paludis sys-apps/sed -- cgit v1.2.3-65-gdbad