Lines Matching defs:db_index

23  *	db_index.cc
34 #include "db_index.h"
56 db_index::db_index()
68 db_index::~db_index()
70 WRITELOCKV(this, "w db_index::~db_index");
77 db_index::reset()
82 WRITELOCKV(this, "w db_index::reset");
99 WRITEUNLOCKV(this, "wu db_index::reset");
108 db_index::init(db_key_desc * k)
110 WRITELOCKV(this, "w db_index::init");
113 WRITEUNLOCKV(this, "wu db_index::init");
142 db_index::grow()
147 WRITELOCKV(this, "w db_index::grow");
158 "wu db_index::grow: table size exceeds calloc limit");
159 FATAL("db_index::grow: table size exceeds calloc limit",
169 "wu db_index::grow: cannot allocate space");
170 FATAL("db_index::grow: cannot allocate space", DB_MEMORY_LIMIT);
179 WRITEUNLOCKV(this, "wu db_index::grow");
189 db_index::lookup(item *index_value, long *how_many_found,
196 READLOCK(this, NULL, "r db_index::lookup");
198 READUNLOCK(this, NULL, "ru db_index::lookup");
217 READUNLOCK(this, ret, "ru db_index::lookup");
228 db_index::remove(item* index_value, entryp recnum)
237 WRITELOCK(this, DB_LOCK_ERROR, "w db_index::remove");
239 WRITEUNLOCK(this, DB_NOTFOUND, "wu db_index::remove");
255 WRITEUNLOCK(this, ret, "wu db_index::remove");
268 db_index::add(item* index_value, entryp recnum)
277 WRITELOCK(this, DB_LOCK_ERROR, "w db_index::add");
288 "wu db_index::add");
289 FATAL3("db_index::add: cannot allocate space",
297 WRITEUNLOCK(this, DB_NOTUNIQUE, "wu db_index::add");
305 WRITEUNLOCK(this, DB_SUCCESS, "wu db_index::add");
311 /* Does the actual writing to/from file specific for db_index structure. */
315 return (xdr_db_index(x, (db_index*) ip));
322 /* Transfers db_index structure pointed to by dp to/from file. */
323 int transfer(db_index* dp)
329 db_index::dump(char *file)
334 WRITELOCK(this, -1, "w db_index::dump");
341 WRITEUNLOCK(this, ret, "wu db_index::dump");
348 db_index::db_index(char *file)
370 db_index::stats(long *tsize, long *tcount)
372 READLOCKV(this, "r db_index::stats");
375 READUNLOCKV(this, "ru db_index::stats");
380 db_index::print()
384 READLOCKV(this, "r db_index::print");
392 READUNLOCKV(this, "ru db_index::print");
401 db_index::move_xdr_db_index(db_index *orig)