diff options
author | jbj <devnull@localhost> | 2001-04-28 11:32:45 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-04-28 11:32:45 +0000 |
commit | 0c919b0df21f108a34e0cc9f91d304856738e08f (patch) | |
tree | 7b5d76bc448163db1afd50bb57b6d5476b61d5fa /db | |
parent | 16eaf800759c4e5975645c7d909e82f51351ca7b (diff) | |
download | rpm-0c919b0df21f108a34e0cc9f91d304856738e08f.tar.gz rpm-0c919b0df21f108a34e0cc9f91d304856738e08f.tar.bz2 rpm-0c919b0df21f108a34e0cc9f91d304856738e08f.zip |
Patch 3.2.9.1 from www.sleepycat.com.
CVS patchset: 4716
CVS date: 2001/04/28 11:32:45
Diffstat (limited to 'db')
-rw-r--r-- | db/include/log.h | 1 | ||||
-rw-r--r-- | db/log/log.c | 14 |
2 files changed, 10 insertions, 5 deletions
diff --git a/db/include/log.h b/db/include/log.h index 08c2b8076..09465aebd 100644 --- a/db/include/log.h +++ b/db/include/log.h @@ -198,6 +198,7 @@ struct __fname { */ typedef enum { DB_LV_INCOMPLETE, + DB_LV_NONEXISTENT, DB_LV_NORMAL, DB_LV_OLD_READABLE, DB_LV_OLD_UNREADABLE diff --git a/db/log/log.c b/db/log/log.c index 69af16248..8ddb7bcaf 100644 --- a/db/log/log.c +++ b/db/log/log.c @@ -309,13 +309,13 @@ __log_find(dblp, find_first, valp, statusp) int find_first, *valp; logfile_validity *statusp; { - logfile_validity clv_status, status; + logfile_validity logval_status, status; u_int32_t clv, logval; int cnt, fcnt, ret; const char *dir; char **names, *p, *q, savech; - clv_status = status = DB_LV_NORMAL; + logval_status = status = DB_LV_NONEXISTENT; /* Return a value of 0 as the log file number on failure. */ *valp = 0; @@ -385,10 +385,14 @@ __log_find(dblp, find_first, valp, statusp) * as a valid log file. */ break; + case DB_LV_NONEXISTENT: + /* Should never happen. */ + DB_ASSERT(0); + break; case DB_LV_NORMAL: case DB_LV_OLD_READABLE: logval = clv; - clv_status = status; + logval_status = status; break; case DB_LV_OLD_UNREADABLE: /* @@ -410,7 +414,7 @@ __log_find(dblp, find_first, valp, statusp) */ if (!find_first) { logval = clv; - clv_status = status; + logval_status = status; } break; } @@ -420,7 +424,7 @@ __log_find(dblp, find_first, valp, statusp) err: __os_dirfree(names, fcnt); __os_freestr(p); - *statusp = clv_status; + *statusp = logval_status; return (ret); } |