Lines Matching refs:dbentry
127 dbe = &logp->dbentry[argp->id];
140 (!logp->dbentry[argp->id].deleted &&
141 logp->dbentry[argp->id].dbp == NULL))) {
167 * entry in the dbentry table for this ndx.
188 dbe = &lp->dbentry[argp->id];
277 if ((ret = __os_realloc(&logp->dbentry,
283 logp->dbentry[i].dbp = NULL;
284 logp->dbentry[i].deleted = 0;
285 logp->dbentry[i].name = NULL;
294 NULL, &logp->dbentry[ndx].name)) != 0)
296 strcpy(logp->dbentry[ndx].name, name);
299 if (logp->dbentry[ndx].deleted == 0 && logp->dbentry[ndx].dbp == NULL) {
300 logp->dbentry[ndx].dbp = dbp;
301 logp->dbentry[ndx].refcount = 1;
302 logp->dbentry[ndx].deleted = dbp == NULL;
304 logp->dbentry[ndx].refcount++;
339 (!logp->dbentry[ndx].deleted && logp->dbentry[ndx].dbp == NULL)) {
361 *dbpp = logp->dbentry[ndx].dbp;
369 if (logp->dbentry[ndx].deleted) {
378 if ((*dbpp = logp->dbentry[ndx].dbp) == NULL)
398 if (logp->dbentry[i].dbp) {
399 logp->dbentry[i].dbp->close(logp->dbentry[i].dbp, 0);
400 logp->dbentry[i].dbp = NULL;
401 logp->dbentry[i].deleted = 0;
416 if (--logp->dbentry[ndx].refcount == 0) {
417 logp->dbentry[ndx].dbp = NULL;
418 logp->dbentry[ndx].deleted = 0;