From 54909eab0f3ef7abcc1c8b256052833180dd8ad6 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 081025ca2f..3cfaecc5f3 100644 --- a/www/class/centreonPurgeEngine.class.php +++ b/www/class/centreonPurgeEngine.class.php @@ -179,7 +179,7 @@ class CentreonPurgeEngine $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' "; try { $DBRESULT = $this->dbCentstorage->query($request); -- GitLab