Home
last modified time | relevance | path

Searched refs:jbc (Results 1 – 6 of 6) sorted by relevance

/third_party/ejdb/src/
Dejdb2.c5 static iwrc _jb_put_new_lw(JBCOLL jbc, JBL jbl, int64_t *id);
55 static void _jb_coll_release(JBCOLL jbc) { in _jb_coll_release() argument
56 if (jbc->cdb) { in _jb_coll_release()
57 iwkv_db_cache_release(jbc->cdb); in _jb_coll_release()
59 if (jbc->meta) { in _jb_coll_release()
60 jbl_destroy(&jbc->meta); in _jb_coll_release()
63 for (JBIDX idx = jbc->idx; idx; idx = nidx) { in _jb_coll_release()
67 jbc->idx = 0; in _jb_coll_release()
68 pthread_rwlock_destroy(&jbc->rwl); in _jb_coll_release()
69 free(jbc); in _jb_coll_release()
[all …]
Dejdb2_internal.h108 JBCOLL jbc; /**< Owner document collection */ member
141 JBCOLL jbc; member
181 JBCOLL jbc; /**< Collection */ member
222 iwrc jb_put(JBCOLL jbc, JBL jbl, int64_t id);
223 iwrc jb_del(JBCOLL jbc, JBL jbl, int64_t id);
224 iwrc jb_cursor_set(JBCOLL jbc, IWKV_cursor cur, int64_t id, JBL jbl);
225 iwrc jb_cursor_del(JBCOLL jbc, IWKV_cursor cur, int64_t id, JBL jbl);
/third_party/ejdb/src/jbi/
Djbi_consumer.c23 rc = iwkv_get_copy(ctx->jbc->cdb, &key, ctx->jblbuf, ctx->jblbufsz, &vsz); in jbi_consumer()
31 "\n\tEntry id: %" PRId64, ctx->jbc->dbid, ctx->midx.idx->dbid, id); in jbi_consumer()
35 "\n\tEntry id: %" PRId64, ctx->jbc->dbid, id); in jbi_consumer()
87 rc = jb_cursor_del(ctx->jbc, cur, id, &jbl); in jbi_consumer()
89 rc = jb_del(ctx->jbc, &jbl, id); in jbi_consumer()
98 rc = jb_cursor_set(ctx->jbc, cur, id, &sn); in jbi_consumer()
100 rc = jb_put(ctx->jbc, &sn, id); in jbi_consumer()
111 rc = jb_cursor_del(ctx->jbc, cur, id, &jbl); in jbi_consumer()
113 rc = jb_del(ctx->jbc, &jbl, id); in jbi_consumer()
Djbi_sorter_consumer.c65 rc = jb_del(ctx->jbc, jbl, doc->id); in _jbi_scan_sorter_apply()
73 rc = jb_put(ctx->jbc, &sn, doc->id); in _jbi_scan_sorter_apply()
128 rc = jb_del(ctx->jbc, &jbl, id); in _jbi_scan_sorter_do()
193 EJDB db = ctx->jbc->db; in jbi_sorter_consumer()
205 …rc = iwkv_get_copy(ctx->jbc->cdb, &key, ctx->jblbuf + sizeof(id), ctx->jblbufsz - sizeof(id), &vsz… in jbi_sorter_consumer()
Djbi_full_scanner.c7 iwrc rc = iwkv_cursor_open(ctx->jbc->cdb, &cur, ctx->cursor_init, 0); in jbi_full_scanner()
Djbi_selection.c310 for (struct _JBIDX *idx = ctx->jbc->idx; idx && *snp < JB_SOLID_EXPRNUM; idx = idx->next) { in _jbi_collect_indexes()
395 for (struct _JBIDX *idx = ctx->jbc->idx; idx; idx = idx->next) { in _jbi_select_index_for_orderby()
436 …if (!(aux->qmode & JQP_QRY_NOIDX) && ctx->jbc->idx) { // we have indexes associated with collection in jbi_selection()