You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2007/03/22 17:32:27 UTC
svn commit: r521327 - /apr/apr-util/trunk/dbd/apr_dbd.c
Author: jorton
Date: Thu Mar 22 09:32:26 2007
New Revision: 521327
URL: http://svn.apache.org/viewvc?view=rev&rev=521327
Log:
* dbd/apr_dbd.c (apr_dbd_get_driver): Ensure driver DSOs have the same
lifetime as the hash table.
Modified:
apr/apr-util/trunk/dbd/apr_dbd.c
Modified: apr/apr-util/trunk/dbd/apr_dbd.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd.c?view=diff&rev=521327&r1=521326&r2=521327
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd.c Thu Mar 22 09:32:26 2007
@@ -147,6 +147,9 @@
}
#ifdef APU_DSO_BUILD
+ /* The driver DSO must have exactly the same lifetime as the
+ * drivers hash table; ignore the passed-in pool */
+ pool = apr_hash_pool_get(drivers);
#ifdef WIN32
sprintf(path, "apr_dbd_%s.dll", name);