wrowe 01/05/13 10:34:03
Modified: dbm/sdbm sdbm.c
Log:
Clean up the re-stat that's not needed and trust apr_sdbm_lock to do our
work for us.
Revision Changes Path
1.23 +2 -13 apr-util/dbm/sdbm/sdbm.c
Index: sdbm.c
===================================================================
RCS file: /home/cvs/apr-util/dbm/sdbm/sdbm.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- sdbm.c 2001/05/13 17:29:41 1.22
+++ sdbm.c 2001/05/13 17:34:03 1.23
@@ -180,20 +180,9 @@
!= APR_SUCCESS)
goto error;
- /*
- * need the dirfile size to establish max bit number.
+ /* apr_pcalloc zeroed the buffers
+ * apr_sdbm_lock stated the dirf->size and invalidated the cache
*/
- if ((status = apr_file_info_get(&finfo, APR_FINFO_SIZE, db->dirf))
- != APR_SUCCESS)
- goto error;
-
- /*
- * zero size: either a fresh database, or one with a single,
- * unsplit data page: dirpage is all zeros.
- */
- SDBM_INVALIDATE_CACHE(db, finfo);
-
- /* (apr_pcalloc zeroed the buffers) */
/*
* if we are opened in SHARED mode, unlock ourself