diff options
author | Mario <mario@mariovavti.com> | 2019-01-02 19:56:11 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-01-02 19:56:11 +0100 |
commit | a19563e1396cb882063db3ce3f355b2db48175e9 (patch) | |
tree | 504a4a9b6f8df99fead90bf7c571ae1e944d9d6a /Zotlabs/Daemon/Master.php | |
parent | c4400cf72a506a1212b9d0d94af952c8e03941e8 (diff) | |
download | volse-hubzilla-a19563e1396cb882063db3ce3f355b2db48175e9.tar.gz volse-hubzilla-a19563e1396cb882063db3ce3f355b2db48175e9.tar.bz2 volse-hubzilla-a19563e1396cb882063db3ce3f355b2db48175e9.zip |
Revert "Use subselect"
This reverts commit a50433dd958ec52eec88867517b3ae6467758618
Diffstat (limited to 'Zotlabs/Daemon/Master.php')
-rw-r--r-- | Zotlabs/Daemon/Master.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Daemon/Master.php b/Zotlabs/Daemon/Master.php index 70d80d75b..0656ca05b 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 id in (select id from config where cat='queuework' and k like '%s' limit 1)", + $work = q("update config set k='%s' 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 id in (select id from config where cat='queuework' and k like '%s' limit 1)", - 'workitem_'.self::$queueworker, - dbesc('workitem:%')); + $work = q("update config set k='%s' where cat='queuework' and k like '%s' limit 1", + 'workitem_'.self::$queueworker, + dbesc('workitem:%')); } logger('Master: Worker Thread: queue items processed:' . $jobs); |