From: Tamas Cseke Date: Thu, 12 May 2011 08:29:20 +0000 (+0200) Subject: load the module even if mongod is unreachable X-Git-Tag: v1.2-rc1~118^2~6^2~35^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26dfea65e48e7dc02e787d97482a7615e84ee4b9;p=thirdparty%2Ffreeswitch.git load the module even if mongod is unreachable --- diff --git a/src/mod/applications/mod_mongo/mongo_conn.cpp b/src/mod/applications/mod_mongo/mongo_conn.cpp index 649ac276b8..ee702b8470 100644 --- a/src/mod/applications/mod_mongo/mongo_conn.cpp +++ b/src/mod/applications/mod_mongo/mongo_conn.cpp @@ -67,7 +67,7 @@ switch_status_t mongo_connection_pool_create(mongo_connection_pool_t **conn_pool for (cpool->size = 0; cpool->size < min_connections; cpool->size++) { - if ((status = mongo_connection_create(&conn, host)) == SWITCH_STATUS_SUCCESS) { + if (mongo_connection_create(&conn, host) == SWITCH_STATUS_SUCCESS) { mongo_connection_pool_put(cpool, conn); } else { break; @@ -154,7 +154,7 @@ switch_status_t mongo_connection_pool_put(mongo_connection_pool_t *conn_pool, DB switch_mutex_unlock(conn_pool->mutex); #ifdef MONGO_POOL_DEBUG - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "POOL put: size %d conn: %p\n", (int) switch_queue_size(conn_pool->connections), conn); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "POOL: put size %d conn: %p\n", (int) switch_queue_size(conn_pool->connections), conn); #endif return status;