mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 13:34:25 +00:00
remove transaction from tables optimization case
This commit is contained in:
parent
be81299c84
commit
acba2816e2
@ -41,9 +41,9 @@ $logsCleanerDeleted = 0;
|
||||
$logsCrawlerDeleted = 0;
|
||||
|
||||
// Begin update
|
||||
try {
|
||||
$db->beginTransaction();
|
||||
|
||||
$db->beginTransaction();
|
||||
try {
|
||||
|
||||
// Get cleaner queue
|
||||
foreach ($db->getCleanerQueue(CLEAN_HOST_LIMIT, time() - CLEAN_HOST_SECONDS_OFFSET) as $host) {
|
||||
@ -239,16 +239,10 @@ if (CLEAN_DB_TABLES_OPTIMIZATION) {
|
||||
|
||||
try {
|
||||
|
||||
$db->beginTransaction();
|
||||
|
||||
$db->optimize();
|
||||
|
||||
$db->commit();
|
||||
|
||||
} catch (Exception $e) {
|
||||
|
||||
$db->rollBack();
|
||||
|
||||
var_dump($e);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user