diff options
Diffstat (limited to 'src/log/log_slot.c')
-rw-r--r-- | src/log/log_slot.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/log/log_slot.c b/src/log/log_slot.c index 760e8888de6..2844516e78f 100644 --- a/src/log/log_slot.c +++ b/src/log/log_slot.c @@ -31,8 +31,8 @@ __wt_log_slot_activate(WT_SESSION_IMPL *session, WT_LOGSLOT *slot) * are reset when the slot is freed. See log_slot_free. */ slot->slot_start_lsn = slot->slot_end_lsn = log->alloc_lsn; - slot->slot_start_offset = log->alloc_lsn.offset; - slot->slot_last_offset = log->alloc_lsn.offset; + slot->slot_start_offset = log->alloc_lsn.l.offset; + slot->slot_last_offset = log->alloc_lsn.l.offset; slot->slot_fh = log->log_fh; slot->slot_error = 0; slot->slot_unbuffered = 0; @@ -96,14 +96,15 @@ retry: slot->slot_end_lsn = slot->slot_start_lsn; end_offset = WT_LOG_SLOT_JOINED_BUFFERED(old_state) + slot->slot_unbuffered; - slot->slot_end_lsn.offset += (wt_off_t)end_offset; + slot->slot_end_lsn.l.offset += end_offset; WT_STAT_FAST_CONN_INCRV(session, log_slot_consolidated, end_offset); /* * XXX Would like to change so one piece of code advances the LSN. */ log->alloc_lsn = slot->slot_end_lsn; - WT_ASSERT(session, log->alloc_lsn.file >= log->write_lsn.file); + WT_ASSERT(session, + log->alloc_lsn.l.file >= log->write_lsn.l.file); return (0); } |