Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 83222 invoked by uid 500); 13 May 2001 17:34:04 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 83211 invoked by uid 500); 13 May 2001 17:34:04 -0000 Delivered-To: apmail-apr-util-cvs@apache.org Date: 13 May 2001 17:34:03 -0000 Message-ID: <20010513173403.83206.qmail@apache.org> From: wrowe@apache.org To: apr-util-cvs@apache.org Subject: cvs commit: apr-util/dbm/sdbm sdbm.c 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