Lines Matching refs:table

66 	table = NULL;  in db_mindex()
117 table = new db_table(); in init()
118 if (table == NULL) { in init()
145 if (table) table->reset(); in reset_tables()
182 (table->mapping.fromLDAP || in satisfy_query()
183 table->mapping.objType != NIS_TABLE_OBJ)); in satisfy_query()
189 if (fromLDAP && table->mapping.matchFetch == mat_always) { in satisfy_query()
192 READLOCKNR(table, lockcode, in satisfy_query()
201 READUNLOCKNR(table, lockcode, in satisfy_query()
228 if (table->mapping.matchFetch != mat_never) { in satisfy_query()
287 table, checkExpire); in satisfy_query_dbonly()
323 READLOCK2(table, NULL, "r table db_mindex::prepare_results", this); in prepare_results()
328 READUNLOCK2(this, table, NULL, NULL, in prepare_results()
345 new_entry(table->get_entry(res->getlocation())); in prepare_results()
349 READUNLOCK2(this, table, entries, entries, in prepare_results()
370 ret = extract_index_values_from_object(table->get_entry(recnum)); in extract_index_values_from_record()
438 READLOCK2(table, DB_LOCK_ERROR, "r table db_mindex::first", this); in first()
439 if (table->mapping.fromLDAP) { in first()
442 if (now.tv_sec >= table->mapping.enumExpire) { in first()
445 table->mapping.enumExpire = now.tv_sec + in first()
446 table->mapping.ttl; in first()
448 READUNLOCK2(this, table, in first()
456 entry_object_p ptr = table->first_entry(where); in first()
461 READUNLOCK2(this, table, ret, ret, in first()
478 READLOCK2(table, DB_LOCK_ERROR, "r db_mindex::next", this); in next()
479 if (!(table->entry_exists_p(previous))) in next()
482 entry_object * ptr = table->next_entry(previous, where); in next()
488 READUNLOCK2(this, table, ret, ret, in next()
550 READLOCK2(table, DB_LOCK_ERROR, "r table db_mindex::first", this); in first()
564 entry_object_p ptr = table->get_entry((*where)->location); in first()
570 READUNLOCK2(this, table, ret, ret, in first()
587 READLOCK2(table, DB_LOCK_ERROR, "r table db_mindex::next", this); in next()
600 table->get_entry((*where)->location); in next()
609 READUNLOCK2(this, table, ret, ret, in next()
658 if (table == NULL) { in all()
665 READLOCKNR(table, lret, "r table db_mindex::all"); in all()
671 if (table->mapping.fromLDAP) { in all()
674 if (now.tv_sec >= table->mapping.enumExpire) { in all()
677 READUNLOCKNR(table, lret, in all()
686 if ((how_many = table->fullness()) <= 0) { in all()
693 READUNLOCKNR(table, lret, "ru table db_mindex::all"); in all()
700 READUNLOCKNR(table, lret, "ru table db_mindex::all"); in all()
708 ptr = table->first_entry(&where); in all()
716 ptr = table->next_entry(where, &where); in all()
726 READUNLOCKNR(table, lret, "ru table db_mindex::all"); in all()
763 entry_object *e = table->get_entry(recloc); in remove_aux()
786 if (table->mapping.storeErrorDisp == abandon) in remove_aux()
809 table->delete_entry(recloc); in remove_aux()
837 WRITELOCK2(table, DB_LOCK_ERROR, "w table db_mindex::remove", this); in remove()
839 if (table->mapping.toLDAP && !noWriteThrough.flag) { in remove()
846 if (table != NULL && table->getsize() > 0) { in remove()
848 WRITEUNLOCK2(table, this, DB_SUCCESS, DB_SUCCESS, in remove()
853 WRITEUNLOCK2(table, this, DB_NOTFOUND, DB_NOTFOUND, in remove()
863 WRITEUNLOCK2(table, this, DB_BADQUERY, DB_BADQUERY, in remove()
869 WRITEUNLOCK2(table, this, DB_NOTFOUND, DB_NOTFOUND, in remove()
877 WRITEUNLOCK2(table, this, s, s, in remove()
887 WRITEUNLOCK2(table, this, DB_INTERNAL_ERROR, in remove()
897 WRITEUNLOCK2(table, this, rstat, rstat, in remove()
904 WRITEUNLOCK2(table, this, DB_SUCCESS, DB_SUCCESS, in remove()
934 WRITELOCK2(table, DB_LOCK_ERROR, "w table db_mindex::add", this); in add()
938 WRITEUNLOCK2(this, table, DB_LOCK_ERROR, DB_LOCK_ERROR, in add()
947 WRITEUNLOCK2(this, table, rstat, rstat, in add()
957 entryp recloc = table->add_entry(obj, initialLoad.flag); in add()
961 table->delete_entry(recloc); in add()
962 WRITEUNLOCK2(this, table, in add()
970 table->delete_entry(recloc); in add()
974 WRITEUNLOCK2(this, table, in add()
1004 if (table->mapping.storeErrorDisp == abandon) { in add()
1005 WRITEUNLOCK2(this, table, in add()
1023 WRITEUNLOCK2(this, table, rstat, rstat, in add()
1080 if (table) { delete table; table = NULL; } in reset()
1104 int init_table = (this->table == NULL); in load()
1137 if (status == 0 && this->table != 0 && init_table) { in load()
1144 (void) memcpy(tmptable, this->table, in load()
1145 this->table->oldstructsize()); in load()
1146 free(this->table); in load()
1147 this->table = tmptable; in load()
1191 long *stats = table->stats(TRUE); in print_stats()