src/server/util/pool.c

changeset 29
e8619defde14
parent 14
b8bf95b39952
child 40
56cda23f48d4
--- a/src/server/util/pool.c	Sun May 06 10:09:27 2012 +0200
+++ b/src/server/util/pool.c	Wed May 16 12:47:28 2012 +0200
@@ -52,7 +52,7 @@
 //include "systems.h"
 #include "systhr.h"
 #include "pool_pvt.h"
-#include "ereport.h"
+//include "ereport.h"
 //include "base/session.h"
 //include "frame/req.h"
 //include "frame/http.h"
@@ -154,7 +154,7 @@
         //        XP_GetAdminStr(DBT_poolCreateBlockOutOfMemory_));
         PERM_FREE(newblock);
         PERM_FREE(newdata);
-        PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
+        //PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
         return NULL;
     }
     newblock->data = newdata;
@@ -257,7 +257,7 @@
         if (newpool->curr_block == NULL) {
             //ereport(LOG_CATASTROPHE, XP_GetAdminStr(DBT_poolCreateOutOfMemory_));
             pool_destroy((pool_handle_t *)newpool);
-            PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
+            //PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
             return NULL;
         }
 
@@ -274,7 +274,7 @@
     }
     else {
         //ereport(LOG_CATASTROPHE, XP_GetAdminStr(DBT_poolCreateOutOfMemory_1));
-        PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
+        //PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
     }
 
     return (pool_handle_t *)newpool;
@@ -531,7 +531,7 @@
         if (curr_block == NULL) {
             //ereport(LOG_CATASTROPHE,
             //        XP_GetAdminStr(DBT_poolMallocOutOfMemory_));
-            PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
+            //PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
             return NULL;
         }
 

mercurial