diff options
Diffstat (limited to 'db2/log/log_findckp.c')
-rw-r--r-- | db2/log/log_findckp.c | 3 |
1 files changed, 2 insertions, 1 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 { |