ASF Bugzilla – Attachment 26093 Details for
Bug 50012
Please fix code in mod_session_dbd.c (dbd_remove)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch for mod_session_dbd.c (版本 1001981)
dbd.patch (text/plain), 1.69 KB, created by
zhiguo zhao
on 2010-09-27 21:06:37 UTC
(
hide
)
Description:
patch for mod_session_dbd.c (版本 1001981)
Filename:
MIME Type:
Creator:
zhiguo zhao
Created:
2010-09-27 21:06:37 UTC
Size:
1.69 KB
patch
obsolete
>Index: mod_session_dbd.c >=================================================================== >--- mod_session_dbd.c (°æ±¾ 1001981) >+++ mod_session_dbd.c (¹¤×÷¸±±¾) >@@ -335,30 +335,21 @@ > apr_status_t rv; > apr_dbd_prepared_t *statement; > int rows = 0; >+ ap_dbd_t *dbd; > > session_dbd_dir_conf *conf = ap_get_module_config(r->per_dir_config, > &session_dbd_module); >- ap_dbd_t *dbd = session_dbd_acquire_fn(r); >- if (dbd == NULL) { >- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, LOG_PREFIX >- "failed to acquire database connection to remove " >- "session with key '%s'", key); >- return APR_EGENERAL; >- } >+ if (conf->deletelabel == NULL) { >+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, LOG_PREFIX >+ "no SessionDBDDeleteLabel has been specified"); >+ return APR_EGENERAL; >+ } > >- if (conf->deletelabel == NULL) { >- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, LOG_PREFIX >- "no SessionDBDdeletelabel has been specified"); >- return APR_EGENERAL; >- } >+ rv = dbd_init(r, conf->deletelabel, &dbd, &statement); >+ if (rv) { >+ return rv; >+ } > >- statement = apr_hash_get(dbd->prepared, conf->deletelabel, APR_HASH_KEY_STRING); >- if (statement == NULL) { >- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, LOG_PREFIX >- "prepared statement could not be found for " >- "SessionDBDdeletelabel with the label '%s'", conf->deletelabel); >- return APR_EGENERAL; >- } > rv = apr_dbd_pvbquery(dbd->driver, r->pool, dbd->handle, &rows, statement, > key, NULL); > if (rv != APR_SUCCESS) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 50012
: 26093