Home
last modified time | relevance | path

Searched refs:data_db (Results 1 – 4 of 4) sorted by relevance

/openbsd/usr.sbin/ldapd/
H A Dnamespace.c48 if (ns->data_db == NULL || ns->indx_db == NULL) { in namespace_begin_txn()
53 if ((*data_txn = btree_txn_begin(ns->data_db, rdonly)) == NULL || in namespace_begin_txn()
125 if (ns->data_db == NULL) in namespace_open()
128 btree_set_cache_size(ns->data_db, ns->cache_size); in namespace_open()
164 if (ns->data_db != NULL) { in namespace_reopen_data()
165 btree_close(ns->data_db); in namespace_reopen_data()
166 ns->data_db = NULL; in namespace_reopen_data()
200 return namespace_set_fd(ns, &ns->data_db, fd, BT_REVERSEKEY); in namespace_set_data_fd()
239 btree_close(ns->data_db); in namespace_close()
261 if (ns->data_db == NULL) { in namespace_find()
[all …]
H A Dcontrol.c212 if ((st = btree_stat(ns->data_db)) != NULL) in send_stats()
H A Dldapd.h123 struct btree *data_db; member
/openbsd/usr.sbin/ldapctl/
H A Dldapctl.c144 struct btree *data_db, *indx_db; in index_namespace() local
154 data_db = btree_open(path, BT_NOSYNC | BT_REVERSEKEY, 0644); in index_namespace()
156 if (data_db == NULL) in index_namespace()
164 btree_close(data_db); in index_namespace()
168 if ((cursor = btree_cursor_open(data_db)) == NULL) { in index_namespace()
169 btree_close(data_db); in index_namespace()
213 btree_close(data_db); in index_namespace()