apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject svn commit: r513046 - in /apr/apr-util/trunk/dbm: apr_dbm_sdbm.c sdbm/sdbm.c
Date Wed, 28 Feb 2007 22:57:34 GMT
Author: jerenkrantz
Date: Wed Feb 28 14:57:33 2007
New Revision: 513046

URL: http://svn.apache.org/viewvc?view=rev&rev=513046
Log:
Commit #4,124 (okay, it just seems like that) for adding buffered flags to
sdbm...now featuring a +1 from OtherBill.

Modified:
    apr/apr-util/trunk/dbm/apr_dbm_sdbm.c
    apr/apr-util/trunk/dbm/sdbm/sdbm.c

Modified: apr/apr-util/trunk/dbm/apr_dbm_sdbm.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbm/apr_dbm_sdbm.c?view=diff&rev=513046&r1=513045&r2=513046
==============================================================================
--- apr/apr-util/trunk/dbm/apr_dbm_sdbm.c (original)
+++ apr/apr-util/trunk/dbm/apr_dbm_sdbm.c Wed Feb 28 14:57:33 2007
@@ -54,7 +54,7 @@
 #define APR_DBM_NEXTKEY(f, k, nk) apr_sdbm_nextkey(f, &(nk))
 #define APR_DBM_FREEDPTR(dptr)  NOOP_FUNCTION
 
-#define APR_DBM_DBMODE_RO       APR_READ
+#define APR_DBM_DBMODE_RO       (APR_READ | APR_BUFFERED)
 #define APR_DBM_DBMODE_RW       (APR_READ | APR_WRITE)
 #define APR_DBM_DBMODE_RWCREATE (APR_READ | APR_WRITE | APR_CREATE)
 #define APR_DBM_DBMODE_RWTRUNC  (APR_READ | APR_WRITE | APR_CREATE | \

Modified: apr/apr-util/trunk/dbm/sdbm/sdbm.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbm/sdbm/sdbm.c?view=diff&rev=513046&r1=513045&r2=513046
==============================================================================
--- apr/apr-util/trunk/dbm/sdbm/sdbm.c (original)
+++ apr/apr-util/trunk/dbm/sdbm/sdbm.c Wed Feb 28 14:57:33 2007
@@ -103,7 +103,6 @@
      */
     if (!(flags & APR_WRITE)) {
         db->flags |= SDBM_RDONLY;
-        flags |= APR_BUFFERED;
     }
 
     /*



Mime
View raw message