apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject cvs commit: apr-util/dbm apr_dbm_berkeleydb.c
Date Fri, 18 Jan 2002 00:43:46 GMT
striker     02/01/17 16:43:46

  Modified:    dbm      apr_dbm_berkeleydb.c
  Log:
  Fix for db1 where DB_NOTFOUND is not defined.
  
  Submitted by:	Greg Stein
  Reviewed by:	Roy T. Fielding
  
  Revision  Changes    Path
  1.14      +7 -1      apr-util/dbm/apr_dbm_berkeleydb.c
  
  Index: apr_dbm_berkeleydb.c
  ===================================================================
  RCS file: /home/cvs/apr-util/dbm/apr_dbm_berkeleydb.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- apr_dbm_berkeleydb.c	16 Jan 2002 08:56:22 -0000	1.13
  +++ apr_dbm_berkeleydb.c	18 Jan 2002 00:43:46 -0000	1.14
  @@ -250,7 +250,13 @@
       dberr = do_fetch(GET_BDB(dbm->file), ckey, rd);
   
       /* "not found" is not an error. return zero'd value. */
  -    if (dberr == DB_NOTFOUND) {
  +    if (dberr ==
  +#if DB_VER == 1
  +        RET_SPECIAL
  +#else
  +        DB_NOTFOUND
  +#endif
  +        ) {
           memset(&rd, 0, sizeof(rd));
           dberr = 0;
       }
  
  
  

Mime
View raw message