apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject svn commit: r512842 - /apr/apr-util/trunk/dbm/sdbm/sdbm.c
Date Wed, 28 Feb 2007 16:56:37 GMT
Author: jerenkrantz
Date: Wed Feb 28 08:56:36 2007
New Revision: 512842

URL: http://svn.apache.org/viewvc?view=rev&rev=512842
Log:
Only enable APR buffering if we aren't intending to write to the sdbm.

Suggested by: Joe

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

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=512842&r1=512841&r2=512842
==============================================================================
--- apr/apr-util/trunk/dbm/sdbm/sdbm.c (original)
+++ apr/apr-util/trunk/dbm/sdbm/sdbm.c Wed Feb 28 08:56:36 2007
@@ -107,6 +107,7 @@
      */
     if (!(flags & APR_WRITE)) {
         db->flags |= SDBM_RDONLY;
+        flags &= APR_BUFFERED;
     }
 
     /*
@@ -120,7 +121,7 @@
         flags &= ~APR_SHARELOCK;
     }
 
-    flags |= APR_BINARY | APR_READ | APR_BUFFERED;
+    flags |= APR_BINARY | APR_READ;
 
     /*
      * open the files in sequence, and stat the dirfile.



Mime
View raw message