It should be "e" not "p"

This commit is contained in:
Michael 2017-06-04 09:00:07 +00:00
parent 945d3cc048
commit ad53a03f83
1 changed files with 4 additions and 4 deletions

View File

@ -545,7 +545,7 @@ function poller_worker_process() {
$highest_priority = 0;
if (poller_passing_slow($highest_priority)) {
dba::p('LOCK TABLES `workerqueue` WRITE');
dba::e('LOCK TABLES `workerqueue` WRITE');
// Are there waiting processes with a higher priority than the currently highest?
$r = q("SELECT * FROM `workerqueue`
@ -567,7 +567,7 @@ function poller_worker_process() {
return $r;
}
} else {
dba::p('LOCK TABLES `workerqueue` WRITE');
dba::e('LOCK TABLES `workerqueue` WRITE');
}
// If there is no result (or we shouldn't pass lower processes) we check without priority limit
@ -577,7 +577,7 @@ function poller_worker_process() {
// We only unlock the tables here, when we got no data
if (!dbm::is_result($r)) {
dba::p('UNLOCK TABLES');
dba::e('UNLOCK TABLES');
}
return $r;
@ -597,7 +597,7 @@ function poller_claim_process($queue) {
$success = dba::update('workerqueue', array('executed' => datetime_convert(), 'pid' => $mypid),
array('id' => $queue["id"], 'pid' => 0));
dba::p('UNLOCK TABLES');
dba::e('UNLOCK TABLES');
if (!$success) {
logger("Couldn't update queue entry ".$queue["id"]." - skip this execution", LOGGER_DEBUG);