aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-01-02 19:47:39 +0100
committerMario <mario@mariovavti.com>2019-01-02 19:47:39 +0100
commitc4400cf72a506a1212b9d0d94af952c8e03941e8 (patch)
tree40cbedebce23e44d5224d8aec1b4bf97a7f60cb6 /Zotlabs/Daemon
parent37d7d18bb7b1e3bcadbb11c43a761d6953c2dc55 (diff)
parenta50433dd958ec52eec88867517b3ae6467758618 (diff)
downloadvolse-hubzilla-c4400cf72a506a1212b9d0d94af952c8e03941e8.tar.gz
volse-hubzilla-c4400cf72a506a1212b9d0d94af952c8e03941e8.tar.bz2
volse-hubzilla-c4400cf72a506a1212b9d0d94af952c8e03941e8.zip
Merge branch 'patch-20181230a' into 'dev'
Use subselect See merge request hubzilla/core!1451
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Master.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Daemon/Master.php b/Zotlabs/Daemon/Master.php
index 0656ca05b..70d80d75b 100644
--- a/Zotlabs/Daemon/Master.php
+++ b/Zotlabs/Daemon/Master.php
@@ -89,7 +89,7 @@ class Master {
$workersleep = ($workersleep) ? $workersleep : 5;
cli_startup();
- $work = q("update config set k='%s' where cat='queuework' and k like '%s' limit 1",
+ $work = q("update config set k='%s' where id in (select id from config where cat='queuework' and k like '%s' limit 1)",
'workitem_'.self::$queueworker,
dbesc('workitem:%'));
$jobs = 0;
@@ -122,9 +122,9 @@ class Master {
break;
}
sleep ($workersleep);
- $work = q("update config set k='%s' where cat='queuework' and k like '%s' limit 1",
- 'workitem_'.self::$queueworker,
- dbesc('workitem:%'));
+ $work = q("update config set k='%s' where id in (select id from config where cat='queuework' and k like '%s' limit 1)",
+ 'workitem_'.self::$queueworker,
+ dbesc('workitem:%'));
}
logger('Master: Worker Thread: queue items processed:' . $jobs);