apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r344144 - /apr/apr-util/trunk/dbd/apr_dbd.c
Date Mon, 14 Nov 2005 15:12:07 GMT
Author: niq
Date: Mon Nov 14 07:12:05 2005
New Revision: 344144

URL: http://svn.apache.org/viewcvs?rev=344144&view=rev
Log:
Don't break if check_conn is NOTIMPL in a driver

Modified:
    apr/apr-util/trunk/dbd/apr_dbd.c

Modified: apr/apr-util/trunk/dbd/apr_dbd.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/dbd/apr_dbd.c?rev=344144&r1=344143&r2=344144&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd.c Mon Nov 14 07:12:05 2005
@@ -161,12 +161,13 @@
                                        apr_pool_t *pool, const char *params,
                                        apr_dbd_t **handle)
 {
-
+    apr_status_t rv;
     *handle = driver->open(pool, params);
     if (*handle == NULL) {
         return APR_EGENERAL;
     }
-    if (apr_dbd_check_conn(driver, pool, *handle) != APR_SUCCESS) {
+    rv = apr_dbd_check_conn(driver, pool, *handle);
+    if ((rv != APR_SUCCESS) && (rv != APR_ENOTIMPL)) {
         apr_dbd_close(driver, *handle);
         return APR_EGENERAL;
     }



Mime
View raw message