File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
cakephp/app/Console/Command Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments