diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-08-06 23:02:49 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-08-06 23:02:49 -0400 |
commit | cdefee385f4588cff9c1de6be14d421be05b026e (patch) | |
tree | 93d00cc8cd78bf2d222b34d991f079bb6daac73a | |
parent | Update deps; don't use print_error in shared dbinit (diff) | |
download | ingenue-cdefee385f4588cff9c1de6be14d421be05b026e.tar.gz ingenue-cdefee385f4588cff9c1de6be14d421be05b026e.tar.bz2 ingenue-cdefee385f4588cff9c1de6be14d421be05b026e.zip |
Fix backend $build->get_owner() inside sql LOCK
-rwxr-xr-x | backend/backend.php | 2 | ||||
-rw-r--r-- | 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']) { @@ -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 |