Lines Matching defs:nlsn
95 DB_LSN nlsn;
108 nlsn = dblp->c_lsn;
111 nlsn = lp->chkpt_lsn;
112 if (IS_ZERO_LSN(nlsn)) {
120 if (!IS_ZERO_LSN(nlsn)) {
122 nlsn.offset += dblp->c_len;
139 nlsn.file = cnt;
140 nlsn.offset = 0;
145 if (!IS_ZERO_LSN(nlsn)) {
147 if (nlsn.offset == 0) {
148 if (nlsn.file == 1 ||
149 __log_valid(dblp, nlsn.file - 1, 0) != 0)
152 --nlsn.file;
153 nlsn.offset = dblp->c_off;
155 nlsn.offset = dblp->c_off;
160 nlsn.file = lp->lsn.file;
161 nlsn.offset = lp->lsn.offset - lp->len;
164 nlsn = *alsn;
170 if (nlsn.file > lp->lsn.file ||
171 (nlsn.file == lp->lsn.file && nlsn.offset >= lp->lsn.offset))
175 if (dblp->c_lsn.file != nlsn.file && dblp->c_fd != -1) {
181 if (nlsn.file == lp->lsn.file && nlsn.offset >= lp->w_off) {
183 p = lp->buf + (nlsn.offset - lp->w_off);
196 if ((ret = __log_name(dblp, nlsn.file,
207 __os_seek(dblp->c_fd, 0, 0, nlsn.offset, 0, SEEK_SET)) != 0) {
220 if (flags != DB_NEXT || nlsn.file == lp->lsn.file)
224 ++nlsn.file;
225 nlsn.offset = 0;
306 dblp->c_lsn = *alsn = nlsn;