From d3cb96deca852b5c96f67611b0a0fdd43b3d0533 Mon Sep 17 00:00:00 2001
From: Ali Mohammed <ali.mohammed@hpe.com>
Date: Mon, 30 Jan 2023 16:55:59 +0100
Subject: [PATCH] Warn about existing pending entries

---
 maestro/pool_manager_registry.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/maestro/pool_manager_registry.c b/maestro/pool_manager_registry.c
index f67db721..82b6e344 100644
--- a/maestro/pool_manager_registry.c
+++ b/maestro/pool_manager_registry.c
@@ -256,9 +256,8 @@ mstro_pc_app_register_pending(mstro_app_id id)
 		WITH_LOCKED_APP_REGISTRY({
         /**check there is no other entry before*/
         HASH_FIND(hh, g_mstro_pm_app_registry, &id, sizeof(mstro_app_id), elt);
-        if((elt!=NULL) && (elt->pending)) {
-          //FIXME should be a warning as we can handle this 
-          ERR("There is alreading a pending entry for app %"PRIappid", should not overwrite \n", id);
+        if((elt!=NULL) && (elt->pending)) { 
+          WARN("There is alreading a pending entry for app %"PRIappid", should not overwrite \n", id);
           /*cleanup*/
           status = mstro_pm_app_reg__entry_dispose(e);
           assert(status ==MSTRO_OK);
-- 
GitLab