aboutsummaryrefslogtreecommitdiff
path: root/db2/log/log_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'db2/log/log_put.c')
-rw-r--r--db2/log/log_put.c3
1 files changed, 2 insertions, 1 deletions
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);
}