Lines Matching refs:offset
92 lsn->offset = lp->lsn.offset;
97 if (lp->lsn.offset + sizeof(HDR) + dbt->size > lp->persist.lg_max) {
110 * Save the last known offset from the previous file, we'll
113 lastoff = lp->lsn.offset;
117 lp->lsn.offset = 0;
119 /* Reset the file write offset. */
126 lsn->offset = lp->lsn.offset;
133 if (lp->lsn.offset == 0) {
142 lsn->offset = lp->lsn.offset;
146 if ((ret = __log_putr(dblp, lsn, dbt, lp->lsn.offset - lp->len)) != 0)
214 * Initialize the header. If we just switched files, lsn.offset will
215 * be 0, and what we really want is the offset of the previous record
225 lp->lsn.offset += sizeof(HDR);
230 lp->lsn.offset += dbt->size;
277 t_lsn.offset = lp->lsn.offset - lp->len;
282 lsn->offset > lp->lsn.offset - lp->len)) {
294 (lsn->file == lp->s_lsn.file && lsn->offset <= lp->s_lsn.offset))
336 * to a log file, and decrementing either s_lsn.file or s_lsn.offset
341 if (lp->s_lsn.offset == 0) {
343 lp->s_lsn.offset = lp->persist.lg_max;
345 --lp->s_lsn.offset;
434 * Seek to the offset in the file (someone may have written it
445 /* Reset the buffer offset and update the seek offset. */