Skip to content

Commit 0646bda

Browse files
committed
Resove gab in servicestatus_id #40
1 parent 2644673 commit 0646bda

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

cakephp/app/Console/Command/StatusengineLegacyShell.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,16 @@ public function dumpObjects($job){
549549
$this->activateObjects($this->dumpIds);
550550

551551
//Remove deprecated status records
552-
CakeLog::info('Delete deprecated status records');
553-
$this->removeDeprecatedHoststatusRecords($this->dumpIds);
554-
$this->removeDeprecatedServicestatusRecords($this->dumpIds);
552+
553+
////Removed due to: https://www.percona.com/blog/2011/11/29/avoiding-auto-increment-holes-on-innodb-with-insert-ignore/
554+
//CakeLog::info('Delete deprecated status records');
555+
//$this->removeDeprecatedHoststatusRecords($this->dumpIds);
556+
//$this->removeDeprecatedServicestatusRecords($this->dumpIds);
557+
558+
CakeLog::info('Truncate table hoststatus');
559+
$this->Hoststatus->truncate();
560+
CakeLog::info('Truncate table servicestatus');
561+
$this->Servicestatus->truncate();
555562

556563
$this->dumpIds = [];
557564

0 commit comments

Comments
 (0)