Lines Matching refs:dblp
30 log_register(dblp, dbp, name, type, idp)
31 DB_LOG *dblp;
50 LOG_PANIC_CHECK(dblp);
54 __db_err(dblp->dbenv, "log_register: unknown DB file type");
59 if ((ret = __db_appname(dblp->dbenv,
63 LOCK_LOGREGION(dblp);
71 for (maxid = 0, fnp = SH_TAILQ_FIRST(&dblp->lp->fq, __fname);
90 else if ((ret = __db_shalloc(dblp->addr, sizeof(FNAME), 0, &fnp)) != 0)
100 if ((ret = __db_shalloc(dblp->addr, len, 0, &namep)) != 0)
102 fnp->name_off = R_OFFSET(dblp, namep);
107 SH_TAILQ_INSERT_HEAD(&dblp->lp->fq, fnp, q, __fname);
111 if (!F_ISSET(dblp, DBC_RECOVER)) {
117 if ((ret = __log_register_log(dblp, NULL, &r_unused,
120 if ((ret = __log_add_logid(dblp, dbp, name, fnp->id)) != 0)
130 SH_TAILQ_REMOVE(&dblp->lp->fq, fnp, q, __fname);
132 __db_shalloc_free(dblp->addr, namep);
134 __db_shalloc_free(dblp->addr, fnp);
139 UNLOCK_LOGREGION(dblp);
152 log_unregister(dblp, fid)
153 DB_LOG *dblp;
161 LOG_PANIC_CHECK(dblp);
164 LOCK_LOGREGION(dblp);
167 for (fnp = SH_TAILQ_FIRST(&dblp->lp->fq, __fname);
172 __db_err(dblp->dbenv, "log_unregister: non-existent file id");
178 if (!F_ISSET(dblp, DBC_RECOVER)) {
180 r_name.data = R_ADDR(dblp, fnp->name_off);
185 if ((ret = __log_register_log(dblp, NULL, &r_unused,
196 __db_shalloc_free(dblp->addr, R_ADDR(dblp, fnp->name_off));
203 if (!F_ISSET(dblp, DBC_RECOVER))
204 __log_rem_logid(dblp, fid);
206 ret1: UNLOCK_LOGREGION(dblp);