summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-08-06 23:02:49 -0400
committerEudyptula <eitan@mosenkis.net>2009-08-06 23:02:49 -0400
commitcdefee385f4588cff9c1de6be14d421be05b026e (patch)
tree93d00cc8cd78bf2d222b34d991f079bb6daac73a
parentUpdate deps; don't use print_error in shared dbinit (diff)
downloadingenue-cdefee385f4588cff9c1de6be14d421be05b026e.tar.gz
ingenue-cdefee385f4588cff9c1de6be14d421be05b026e.tar.bz2
ingenue-cdefee385f4588cff9c1de6be14d421be05b026e.zip
Fix backend $build->get_owner() inside sql LOCK
-rwxr-xr-xbackend/backend.php2
-rw-r--r--depend2
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