diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 11:07:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 11:07:34 +0000 |
commit | 2c874db2dd8b34a36f00284c2c5d215a4c9506ac (patch) | |
tree | 679922799ac611eeff4513bfb7b0f880f1277b4f /db2/log | |
parent | 88c9111883a14f2f3fd31471df6923f76b97e1a0 (diff) | |
download | glibc-2c874db2dd8b34a36f00284c2c5d215a4c9506ac.tar glibc-2c874db2dd8b34a36f00284c2c5d215a4c9506ac.tar.gz glibc-2c874db2dd8b34a36f00284c2c5d215a4c9506ac.tar.bz2 glibc-2c874db2dd8b34a36f00284c2c5d215a4c9506ac.zip |
Update.
* db2/btree/bt_cursor.c: Likewise.
* db2/common/db_region.db_c: Likewise.
* db2/common/db_salloc.db_c: Likewise.
* db2/db/db.c: Likewise.
* db2/db/db_rec.c: Likewise.
* db2/hash/hash.c: Likewise.
* db2/hash/hash_page.c: Likewise.
* db2/hash/hash_rec.c: Likewise.
* db2/log/log_findckp.c: Likewise.
* db2/log/log_get.c: Likewise.
* db2/log/log_put.c: Likewise.
* db2/mp/mp_fget.c: Likewise.
* db2/mp/mp_fput.c: Likewise.
* db2/mp/mp_region.c: Likewise.
Diffstat (limited to 'db2/log')
-rw-r--r-- | db2/log/log_findckp.c | 3 | ||||
-rw-r--r-- | db2/log/log_get.c | 3 | ||||
-rw-r--r-- | db2/log/log_put.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/db2/log/log_findckp.c b/db2/log/log_findckp.c index 82bd5890e6..1f717b49e7 100644 --- a/db2/log/log_findckp.c +++ b/db2/log/log_findckp.c @@ -70,11 +70,12 @@ __log_findckp(lp, lsnp) if (F_ISSET(lp, DB_AM_THREAD)) F_SET(&data, DB_DBT_MALLOC); ZERO_LSN(ckp_lsn); - if ((ret = log_get(lp, &last_ckp, &data, DB_CHECKPOINT)) != 0) + if ((ret = log_get(lp, &last_ckp, &data, DB_CHECKPOINT)) != 0) { if (ret == ENOENT) goto get_first; else return (ret); + } next_lsn = last_ckp; do { diff --git a/db2/log/log_get.c b/db2/log/log_get.c index 9a055de0a6..84ddca1c73 100644 --- a/db2/log/log_get.c +++ b/db2/log/log_get.c @@ -329,12 +329,13 @@ corrupt:/* ret = EIO; fail = "read"; -err1: if (!silent) + err1: if (!silent) { if (fail == NULL) __db_err(dblp->dbenv, "log_get: %s", strerror(ret)); else __db_err(dblp->dbenv, "log_get: %s: %s", fail, strerror(ret)); + } err2: if (np != NULL) __db_free(np); if (tbuf != NULL) diff --git a/db2/log/log_put.c b/db2/log/log_put.c index d00e7dde21..5ef2294af5 100644 --- a/db2/log/log_put.c +++ b/db2/log/log_put.c @@ -333,12 +333,13 @@ __log_flush(dblp, lsn) * the record before the one beginning the current buffer is on disk. */ lp->s_lsn = lp->f_lsn; - if (!current) + if (!current) { if (lp->s_lsn.offset == 0) { --lp->s_lsn.file; lp->s_lsn.offset = lp->persist.lg_max; } else --lp->s_lsn.offset; + } return (0); } |