From c07b2361de8d13968311259ac250cc20eafd7587 Mon Sep 17 00:00:00 2001 From: Kevin Duret <duret.kevin@gmail.com> Date: Wed, 25 Apr 2018 14:30:02 +0200 Subject: [PATCH] fix(purge): fix purge on pmax partition (#6232) --- www/class/centreonPurgeEngine.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/class/centreonPurgeEngine.class.php b/www/class/centreonPurgeEngine.class.php index 6f02b21cc0..77fcca65bb 100644 --- a/www/class/centreonPurgeEngine.class.php +++ b/www/class/centreonPurgeEngine.class.php @@ -165,7 +165,7 @@ class CentreonPurgeEngine $request .= "AND TABLE_SCHEMA='" . dbcstg . "' "; $request .= "AND CONVERT(PARTITION_DESCRIPTION, SIGNED INTEGER) IS NOT NULL "; $request .= "AND CONVERT(PARTITION_DESCRIPTION, SIGNED INTEGER) < " . $this->tablesToPurge[$table]['retention'] . " "; - $request .= "AND CONVERT(PARTITION_DESCRIPTION, SIGNED INTEGER) NOT LIKE 'pmax' "; + $request .= "AND PARTITION_NAME NOT LIKE 'pmax' "; $DBRESULT = $this->dbCentstorage->query($request); if (PEAR::isError($DBRESULT)) { -- GitLab