ovdb bugfix
Heath Kehoe
heath.kehoe at intermec.com
Fri Jul 7 20:59:22 UTC 2000
Please apply this patch to both CURRENT and BETA trees.
*** ovdb.c.dist Fri Jul 7 15:46:27 2000
--- ovdb.c Fri Jul 7 15:53:40 2000
***************
*** 2,7 ****
--- 2,8 ----
* ovdb.c
* Overview storage using BerkeleyDB 2.x/3.x
*
+ * 2000-07-07 : bugfix: timestamp handling
* 2000-06-10 : Modified groupnum() interface; fix ovdb_add() to return FALSE
* for certain groupnum() errors
* 2000-06-08 : Added BerkeleyDB 3.1.x compatibility
***************
*** 168,173 ****
--- 169,175 ----
static DB **dbs = NULL;
static int oneatatime = 0;
static int current_db = -1;
+ static time_t eo_start = 0;
static DB *groupstats = NULL;
static DB *groupsbyname = NULL;
***************
*** 546,552 ****
if(val.size != sizeof(struct groupstats))
continue;
! if(gs.expired >= OVrealnow)
continue;
delete_all_records(gno);
--- 548,554 ----
if(val.size != sizeof(struct groupstats))
continue;
! if(gs.expired >= eo_start)
continue;
delete_all_records(gno);
***************
*** 1403,1408 ****
--- 1405,1413 ----
ARTHANDLE *ah;
ARTNUM newlo = 0, artnum, oldhi;
int newcount = 0;
+
+ if(eo_start == 0)
+ eo_start = time(NULL);
/* Special case: when called with NULL group, we're to clean out
records for deleted groups. This will also clean out forgotton
More information about the inn-patches
mailing list