Home | History | Annotate | Download | only in back-wt

Lines Matching refs:wi

37 	struct wt_info *wi;
42 wi = ch_calloc( 1, sizeof(struct wt_info) );
43 wi->wi_home = ch_strdup( SLAPD_DEFAULT_DB_DIR );
44 wi->wi_config = ch_calloc( 1, WT_CONFIG_MAX + 1);
46 strcpy(wi->wi_config, "readonly");
48 strcpy(wi->wi_config, "create");
50 wi->wi_lastid = 0;
51 wi->wi_search_stack_depth = DEFAULT_SEARCH_STACK_DEPTH;
52 wi->wi_search_stack = NULL;
53 wi->wi_flags = WT_USE_IDLCACHE;
55 be->be_private = wi;
64 struct wt_info *wi = (struct wt_info *) be->be_private;
77 be->be_suffix[0].bv_val, wi->wi_home, wi->wi_config );
80 rc = stat( wi->wi_home, &st );
86 be->be_suffix[0].bv_val, wi->wi_home, saved_errno );
94 rc = wiredtiger_open(wi->wi_home, NULL,
95 wi->wi_config, &wi->wi_conn);
101 be->be_suffix[0].bv_val, wi->wi_home, saved_errno );
105 rc = wi->wi_conn->open_session(wi->wi_conn, NULL, NULL, &session);
185 "in_memory=true", &wi->wi_cache);
194 rc = wi->wi_cache->open_session(wi->wi_cache, NULL, NULL, &cache_session);
217 rc = wt_last_id( be, session, &wi->wi_lastid);
233 wi->wi_flags |= WT_IS_OPEN;
240 struct wt_info *wi = (struct wt_info *) be->be_private;
243 if ( wi->wi_cache ) {
244 rc = wi->wi_cache->close(wi->wi_cache, NULL);
252 if ( wi->wi_conn ) {
253 rc = wi->wi_conn->close(wi->wi_conn, NULL);
259 wi->wi_flags &= ~WT_IS_OPEN;
268 struct wt_info *wi = (struct wt_info *) be->be_private;
270 if( wi->wi_home ) {
271 ch_free( wi->wi_home );
272 wi->wi_home = NULL;
275 if( wi->wi_config ) {
276 ch_free( wi->wi_config );
277 wi->wi_config = NULL;
280 wt_attr_index_destroy( wi );
281 ch_free( wi );