projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
database lock for frequent processes
[Pman.Core]
/
Heartbeat.php
diff --git
a/Heartbeat.php
b/Heartbeat.php
index
6a49092
..
27c1bf8
100644
(file)
--- a/
Heartbeat.php
+++ b/
Heartbeat.php
@@
-20,6
+20,12
@@
class Pman_Core_Heartbeat extends Pman
function post($req)
{
$this->initErrorHandling();
function post($req)
{
$this->initErrorHandling();
+
+ if ($this->database_is_locked()) {
+ die("FAILED");
+ }
+
+
$cd = DB_DataObject::Factory('core_enum');
$cd->setFrom(array(
'etype' => 'heartbeat',
$cd = DB_DataObject::Factory('core_enum');
$cd->setFrom(array(
'etype' => 'heartbeat',
@@
-48,4
+54,6
@@
class Pman_Core_Heartbeat extends Pman
// print_r($err);
die("FAILED");
}
// print_r($err);
die("FAILED");
}
+
+
}
\ No newline at end of file
}
\ No newline at end of file