1 /* OpenLDAP WiredTiger backend */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2002-2015 The OpenLDAP Foundation.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
12 * A copy of this license is available in the file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
17 * This work was developed by HAMANO Tsukasa <hamano@osstech.co.jp>
18 * based on back-bdb for inclusion in OpenLDAP Software.
19 * WiredTiger is a product of MongoDB Inc.
27 #define WT_UCTYPE "WT"
29 AttrInfo *wt_attr_mask( struct wt_info *wi, AttributeDescription *desc );
30 void wt_attr_flush( struct wt_info *wi );
35 int wt_id2entry_add(Operation *op, WT_SESSION *session, Entry *e );
36 int wt_id2entry_update(Operation *op, WT_SESSION *session, Entry *e );
37 int wt_id2entry_delete(Operation *op, WT_SESSION *session, Entry *e );
39 BI_entry_release_rw wt_entry_release;
40 BI_entry_get_rw wt_entry_get;
42 int wt_entry_return(Entry *e);
43 int wt_entry_release(Operation *op, Entry *e, int rw);
49 unsigned wt_idl_search( ID *ids, ID id );
51 ID wt_idl_first( ID *ids, ID *cursor );
52 ID wt_idl_next( ID *ids, ID *cursor );
58 int wt_index_entry LDAP_P(( Operation *op, wt_ctx *wc, int r, Entry *e ));
60 #define wt_index_entry_add(op,t,e) \
61 wt_index_entry((op),(t),SLAP_INDEX_ADD_OP,(e))
62 #define wt_index_entry_del(op,t,e) \
63 wt_index_entry((op),(t),SLAP_INDEX_DELETE_OP,(e))
69 wt_key_read( Backend *be,
73 WT_CURSOR **saved_cursor,
77 wt_key_change( Backend *be,
86 int wt_next_id(BackendDB *be, ID *out);
87 int wt_last_id( BackendDB *be, WT_SESSION *session, ID *out );
92 int wt_back_init_cf( BackendInfo *bi );
121 int wt_dn2entry( BackendDB *be,
126 int wt_dn2pentry( BackendDB *be,
134 wt_ctx *wt_ctx_init(struct wt_info *wi);
135 void wt_ctx_free(void *key, void *data);
136 wt_ctx *wt_ctx_get(Operation *op, struct wt_info *wi);
137 WT_CURSOR *wt_ctx_index_cursor(wt_ctx *wc, struct berval *name, int create);
144 extern BI_init wt_back_initialize;
145 extern BI_db_config wt_db_config;
146 extern BI_op_add wt_add;
147 extern BI_op_bind wt_bind;
148 extern BI_op_compare wt_compare;
149 extern BI_op_delete wt_delete;
151 extern BI_op_search wt_search;
153 extern BI_operational wt_operational;
156 extern BI_tool_entry_open wt_tool_entry_open;
157 extern BI_tool_entry_close wt_tool_entry_close;
158 extern BI_tool_entry_first_x wt_tool_entry_first_x;
159 extern BI_tool_entry_next wt_tool_entry_next;
160 extern BI_tool_entry_get wt_tool_entry_get;
161 extern BI_tool_entry_put wt_tool_entry_put;
162 extern BI_tool_entry_reindex wt_tool_entry_reindex;
163 extern BI_tool_dn2id_get wt_tool_dn2id_get;
164 extern BI_tool_entry_modify wt_tool_entry_modify;
168 #endif /* _PROTO_WT_H */
172 * indent-tabs-mode: t