Lines Matching refs:dblp

33 log_get(dblp, alsn, dbt, flags)
34 DB_LOG *dblp;
41 LOG_PANIC_CHECK(dblp);
47 return (__db_ferr(dblp->dbenv, "log_get", 1));
49 if (F_ISSET(dblp, DB_AM_THREAD)) {
51 return (__db_ferr(dblp->dbenv, "log_get", 1));
53 return (__db_ferr(dblp->dbenv, "threaded data", 1));
56 LOCK_LOGREGION(dblp);
63 ret = __log_get(dblp, alsn, dbt, flags, 0);
73 ret = __log_get(dblp, alsn, dbt, flags, 0);
76 UNLOCK_LOGREGION(dblp);
88 __log_get(dblp, alsn, dbt, flags, silent)
89 DB_LOG *dblp;
105 lp = dblp->lp;
108 nlsn = dblp->c_lsn;
113 __db_err(dblp->dbenv,
122 nlsn.offset += dblp->c_len;
128 if ((ret = __log_find(dblp, 1, &cnt)) != 0)
149 __log_valid(dblp, nlsn.file - 1, 0) != 0)
153 nlsn.offset = dblp->c_off;
155 nlsn.offset = dblp->c_off;
175 if (dblp->c_lsn.file != nlsn.file && dblp->c_fd != -1) {
176 (void)__os_close(dblp->c_fd);
177 dblp->c_fd = -1;
189 len, &dblp->c_dbt.data, &dblp->c_dbt.ulen, NULL)) != 0)
195 if (dblp->c_fd == -1) {
196 if ((ret = __log_name(dblp, nlsn.file,
197 &np, &dblp->c_fd, DB_RDONLY | DB_SEQUENTIAL)) != 0) {
207 __os_seek(dblp->c_fd, 0, 0, nlsn.offset, 0, SEEK_SET)) != 0) {
211 if ((ret = __os_read(dblp->c_fd, &hdr, sizeof(HDR), &nr)) != 0) {
255 &dblp->c_dbt.data, &dblp->c_dbt.ulen, NULL)) != 0)
276 if ((ret = __os_read(dblp->c_fd, tbuf, len, &nr)) != 0) {
292 &dblp->c_dbt.data, &dblp->c_dbt.ulen, NULL)) != 0)
299 __db_err(dblp->dbenv, "log_get: checksum mismatch");
304 dblp->c_off = hdr.prev;
305 dblp->c_len = hdr.len;
306 dblp->c_lsn = *alsn = nlsn;
320 __db_err(dblp->dbenv, "log_get: %s", strerror(ret));
322 __db_err(dblp->dbenv,