Lines Matching refs:t

63 	BTREE *t;  in __bt_close()  local
66 t = dbp->internal; in __bt_close()
69 if (t->bt_pinned != NULL) { in __bt_close()
70 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_close()
71 t->bt_pinned = NULL; in __bt_close()
79 if (mpool_close(t->bt_mp) == RET_ERROR) in __bt_close()
83 if (t->bt_cursor.key.data != NULL) { in __bt_close()
84 free(t->bt_cursor.key.data); in __bt_close()
85 t->bt_cursor.key.size = 0; in __bt_close()
86 t->bt_cursor.key.data = NULL; in __bt_close()
88 if (t->bt_rkey.data) { in __bt_close()
89 free(t->bt_rkey.data); in __bt_close()
90 t->bt_rkey.size = 0; in __bt_close()
91 t->bt_rkey.data = NULL; in __bt_close()
93 if (t->bt_rdata.data) { in __bt_close()
94 free(t->bt_rdata.data); in __bt_close()
95 t->bt_rdata.size = 0; in __bt_close()
96 t->bt_rdata.data = NULL; in __bt_close()
99 fd = t->bt_fd; in __bt_close()
100 free(t); in __bt_close()
117 BTREE *t; in __bt_sync() local
120 t = dbp->internal; in __bt_sync()
123 if (t->bt_pinned != NULL) { in __bt_sync()
124 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_sync()
125 t->bt_pinned = NULL; in __bt_sync()
134 if (F_ISSET(t, B_INMEM | B_RDONLY) || !F_ISSET(t, B_MODIFIED)) in __bt_sync()
137 if (F_ISSET(t, B_METADIRTY) && bt_meta(t) == RET_ERROR) in __bt_sync()
140 if ((status = mpool_sync(t->bt_mp)) == RET_SUCCESS) in __bt_sync()
141 F_CLR(t, B_MODIFIED); in __bt_sync()
156 bt_meta(BTREE *t) in bt_meta() argument
161 if ((p = mpool_get(t->bt_mp, P_META, 0)) == NULL) in bt_meta()
167 m.psize = t->bt_psize; in bt_meta()
168 m.free = t->bt_free; in bt_meta()
169 m.nrecs = t->bt_nrecs; in bt_meta()
170 m.flags = F_ISSET(t, SAVEMETA); in bt_meta()
173 mpool_put(t->bt_mp, p, MPOOL_DIRTY); in bt_meta()