Asterisk - The Open Source Telephony Project
18.5.0
|
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "../include/db.h"
#include "btree.h"
Go to the source code of this file.
Functions | |
static int | __bt_bdelete (BTREE *t, const DBT *key) |
static int | __bt_curdel (BTREE *t, const DBT *key, PAGE *h, u_int idx) |
int | __bt_delete (DB *dbp, const DBT *key, u_int flags) const |
int | __bt_dleaf (BTREE *t, const DBT *key, PAGE *h, u_int idx) |
static int | __bt_pdelete (BTREE *t, PAGE *h) |
static int | __bt_relink (BTREE *t, PAGE *h) |
static int | __bt_stkacq (BTREE *t, PAGE **hp, CURSOR *c) |
static int __bt_bdelete | __P ((BTREE *, const DBT *)) |
static int __bt_curdel | __P ((BTREE *, const DBT *, PAGE *, u_int)) |
static int __bt_pdelete | __P ((BTREE *, PAGE *)) |
static int __bt_stkacq | __P ((BTREE *, PAGE **, CURSOR *)) |
Definition at line 291 of file bt_delete.c.
References __bt_cmp(), __bt_dleaf(), __bt_pdelete(), __bt_search(), B_NODUPS, _btree::bt_mp, F_ISSET, _epg::index, MPOOL_DIRTY, mpool_put(), NEXTINDEX, NULL, _epg::page, RET_ERROR, RET_SPECIAL, and RET_SUCCESS.
Referenced by __bt_delete().
Definition at line 539 of file bt_delete.c.
References __bt_cmp(), __bt_ret(), B_NODUPS, _btree::bt_cursor, _btree::bt_mp, c, CURS_ACQUIRE, CURS_AFTER, CURS_BEFORE, F_CLR, F_ISSET, F_SET, _epgno::index, _epg::index, _cursor::key, mpool_get(), mpool_put(), NEXTINDEX, _page::nextpg, NULL, P_INVALID, _epg::page, _cursor::pg, _page::pgno, _epgno::pgno, _page::prevpg, RET_ERROR, RET_SUCCESS, and status.
Referenced by __bt_dleaf().
Definition at line 63 of file bt_delete.c.
References __bt_bdelete(), __bt_dleaf(), __bt_pdelete(), __bt_stkacq(), B_MODIFIED, B_RDONLY, _btree::bt_cursor, _btree::bt_mp, _btree::bt_pinned, c, CURS_ACQUIRE, CURS_AFTER, CURS_BEFORE, CURS_INIT, errno, F_ISSET, F_SET, _epgno::index, __db::internal, MPOOL_DIRTY, mpool_get(), mpool_put(), NEXTINDEX, NULL, _cursor::pg, _epgno::pgno, R_CURSOR, RET_ERROR, RET_SPECIAL, RET_SUCCESS, and status.
Referenced by __bt_open().
Definition at line 474 of file bt_delete.c.
References __bt_curdel(), __ovfl_delete(), _btree::bt_cursor, _bleaf::bytes, CURS_ACQUIRE, CURS_INIT, F_ISSET, _bleaf::flags, GETBLEAF, _epgno::index, _bleaf::ksize, _page::linp, _page::lower, NBLEAF, NEXTINDEX, P_BIGDATA, P_BIGKEY, _cursor::pg, _page::pgno, _epgno::pgno, RET_ERROR, RET_SUCCESS, and _page::upper.
Referenced by __bt_bdelete(), __bt_delete(), and __bt_put().
Definition at line 378 of file bt_delete.c.
References __bt_free(), __bt_relink(), __ovfl_delete(), _btree::bt_mp, BT_POP, _btree::bt_psize, BTDATAOFF, _binternal::bytes, _page::flags, _binternal::flags, GETBINTERNAL, _epgno::index, _binternal::ksize, _page::linp, _page::lower, MPOOL_DIRTY, mpool_get(), mpool_put(), NBINTERNAL, NEXTINDEX, NULL, P_BIGKEY, P_BLEAF, P_ROOT, _page::pgno, _epgno::pgno, RET_ERROR, RET_SUCCESS, and _page::upper.
Referenced by __bt_bdelete(), and __bt_delete().
Definition at line 638 of file bt_delete.c.
References _btree::bt_mp, MPOOL_DIRTY, mpool_get(), mpool_put(), _page::nextpg, NULL, P_INVALID, _page::prevpg, and RET_ERROR.
Referenced by __bt_pdelete().
Definition at line 144 of file bt_delete.c.
References __bt_search(), _btree::bt_mp, BT_POP, BT_PUSH, GETBINTERNAL, hp, _epgno::index, _cursor::key, mpool_get(), mpool_put(), NEXTINDEX, _page::nextpg, NULL, P_INVALID, _epg::page, _cursor::pg, _page::pgno, _binternal::pgno, _epgno::pgno, and _page::prevpg.
Referenced by __bt_delete().
|
static |
|
static |
|
static |
|
static |