Changeset 16382
- Timestamp:
- 05/15/08 14:58:54 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/branch-1-8/src/core/midgard/midgard/select_db2.h
r7813 r16382 32 32 { 33 33 if (dbc && dbc == rcfg->database.current && dbc->handle && dbc->handle->mgd) { 34 g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, 35 "Midgard: select_database kept current database %s", 36 dbc->name); 34 ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r, 35 "Midgard: select_database kept current database %s", dbc->name); 37 36 rcfg->mgd = dbc->handle->mgd; 38 37 … … 50 49 51 50 if (dbc->handle->mgd != NULL) { 52 g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,51 ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r, 53 52 "Midgard: select_database opened database %s", 54 53 dbc->name); 55 54 } 56 55 else { 57 g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,56 ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r, 58 57 "Midgard: failed to open database '%s' for user '%s'", 59 58 dbc->name, dbc->handle->username); … … 66 65 dbc->handle->hostname, dbc->name, dbc->handle->username, dbc->handle->password) 67 66 && mgd_select_db(dbc->handle->mgd, dbc->name))) { 68 g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,67 ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r, 69 68 "Midgard: switching to %s", dbc->name); 70 69 } 71 70 else { 72 g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,71 ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r, 73 72 "Midgard: switching to %s failed", dbc->name); 74 73 /* DONT GIVE UP try disconnect and reconnect!*/ … … 86 85 } 87 86 else { 88 g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,87 ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r, 89 88 "Midgard: select_database reused open (%s)", 90 89 dbc->name);
