Lines Matching refs:db_dictionary

28 #include "db_dictionary.h"
52 extern db_dictionary *InUseDictionary;
53 extern db_dictionary *FreeDictionary;
109 "db_dictionary: invalid dictionary format! Expecting %s",
112 "db_dictionary: invalid dictionary format! Expecting %s\n",
145 db_dictionary::create_table_desc(char *tab, table_obj* zdesc,
151 "db_dictionary::add_table: could not allocate space for new table",
162 "db_dictionary::add_table: could not allocate space for scheme",
168 "db_dictionary::add_table: could not translate table_obj to scheme");
176 "db_dictionary::add_table: could not allocate space for table name",
417 FATAL("db_dictionary::grow: table size exceeds calloc limit",
424 FATAL("db_dictionary::grow: cannot allocate space",
608 db_dictionary::db_dictionary()
634 db_dictionary::db_clone_bucket(db_table_desc *bucket, db_table_desc **clone)
640 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::db_clone_bucket");
646 "db_dictionary::insert_modified_table: out of memory");
647 FATAL3("db_dictionary::insert_modified_table: out of memory",
655 "db_dictionary::insert_modified_table: xdr encode failed");
657 "db_dictionary::insert_modified_table: xdr encode failed.",
665 "db_dictionary::insert_modified_table: out of memory");
666 FATAL3("db_dictionary::insert_modified_table: out of memory",
676 "db_dictionary::insert_modified_table: xdr encode failed");
678 "db_dictionary::insert_modified_table: xdr encode failed.",
683 READUNLOCK(this, DB_LOCK_ERROR, "ru db_dictionary::db_clone_bucket");
689 db_dictionary::change_table_name(db_table_desc *clone, char *tok, char *repl)
694 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::change_table_name");
714 "db_dictionary::change_table_name: out of memory");
715 FATAL3("db_dictionary::change_table_name: out of memory.",
732 "wu db_dictionary::change_table_name");
745 db_dictionary::inittemp(char *dictname, db_dictionary& curdict)
752 WRITELOCK(this, FALSE, "w db_dictionary::inittemp");
755 WRITEUNLOCK(this, FALSE, "wu db_dictionary::inittemp");
763 "db_dictionary::inittemp: could not allocate space");
764 FATAL3("db_dictionary::inittemp: could not allocate space",
772 "db_dictionary::inittemp: could not allocate space");
773 FATAL3("db_dictionary::inittemp: could not allocate space",
781 "db_dictionary::inittemp: cannot allocate space");
782 FATAL3("db_dictionary::inittemp: cannot allocate space",
797 "db_dictionary::inittemp: could not allocate space");
799 "db_dictionary::inittemp: could not allocate space",
808 "db_dictionary::inittemp: cannot allocate space");
810 "db_dictionary::inittemp: cannot allocate space",
825 WRITEUNLOCK(this, FALSE, "wu db_dictionary::inittemp");
837 db_dictionary::massage_dict(char *newdictname, char *tok, char *repl)
844 db_dictionary *tmpptr;
846 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::massage_dict");
849 "db_dictionary::massage_dict: uninitialized dictionary file");
851 "db_dictionary::massage_dict: uninitialized dictionary file.",
857 "wu db_dictionary::massage_dict");
863 WRITEUNLOCK(this, status, "wu db_dictionary::massage_dict");
883 "wu db_dictionary::massage_dict");
889 "wu db_dictionary::massage_dict");
903 "wu db_dictionary::massage_dict");
911 "wu db_dictionary::massage_dict");
921 "wu db_dictionary::massage_dict");
923 "db_dictionary::massage_dict: Unable to dump new dictionary.",
937 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::massage_dict");
943 db_dictionary::merge_dict(db_dictionary& tempdict, char *tok, char *repl)
951 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::merge_dict");
960 "wu db_dictionary::merge_dict");
972 "wu db_dictionary::merge_dict");
983 "wu db_dictionary::merge_dict");
991 "wu db_dictionary::merge_dict");
1005 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::merge_dict");
1010 db_dictionary::copyfile(char *infile, char *outfile)
1016 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::copyfile");
1026 READUNLOCK(this, DB_LOCK_ERROR, "ru db_dictionary::copyfile");
1034 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::copyfile");
1038 "ru db_dictionary::copyfile");
1043 READUNLOCK(this, ret, "ru db_dictionary::copyfile");
1049 db_dictionary::extract_entries(db_dictionary& tempdict, char **fs, int fscnt)
1056 READLOCK(this, FALSE, "r db_dictionary::extract_entries");
1064 "ru db_dictionary::extract_entries");
1079 "ru db_dictionary::extract_entries");
1086 "ru db_dictionary::extract_entries");
1092 "ru db_dictionary::extract_entries");
1096 "ru db_dictionary::extract_entries");
1109 db_dictionary::init(char *file)
1113 WRITELOCK(this, FALSE, "w db_dictionary::init");
1120 "db_dictionary::init: could not allocate space");
1121 FATAL3("db_dictionary::init: could not allocate space",
1129 "db_dictionary::init: could not allocate space");
1130 FATAL3("db_dictionary::init: could not allocate space",
1138 "db_dictionary::init: cannot allocate space");
1139 FATAL3("db_dictionary::init: cannot allocate space",
1155 "db_dictionary::init: could not allocate space");
1156 FATAL3("db_dictionary::init: could not allocate space",
1178 WRITEUNLOCK(this, initialized, "wu db_dictionary::init");
1192 db_dictionary *dict = (db_dictionary*) dictchar;
1226 db_dictionary::incorporate_log(char *file_name)
1231 WRITELOCK(this, -1, "w db_dictionary::incorporate_log");
1235 WRITEUNLOCK(this, -1, "wu db_dictionary::incorporate_log");
1242 db_dictionary::db_shutdown()
1244 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::db_shutdown");
1247 "wu db_dictionary::db_shutdown");
1271 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_shutdown");
1280 db_dictionary::dump()
1284 READLOCK(this, -1, "r db_dictionary::dump");
1286 READUNLOCK(this, -1, "ru db_dictionary::dump");
1295 WARNING("db_dictionary::dump: could not write out dictionary");
1297 WARNING_M("db_dictionary::dump: could not rename temp file: ");
1301 READUNLOCK(this, -1, "ru db_dictionary::dump");
1315 db_dictionary::checkpoint()
1317 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::checkpoint");
1321 "wu db_dictionary::checkpoint");
1332 "db_dictionary::checkpoint: could not dump dictionary: ");
1336 "wu db_dictionary::checkpoint");
1343 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::checkpoint");
1349 db_dictionary::reset_log()
1351 WRITELOCK(this, -1, "w db_dictionary::reset_log");
1358 "db_dictionary::reset_log: could not close log file: ");
1365 WRITEUNLOCK(this, -1, "wu db_dictionary::reset_log");
1371 db_dictionary::close_log()
1373 WRITELOCK(this, -1, "w db_dictionary::close_log");
1378 WRITEUNLOCK(this, -1, "wu db_dictionary::close_log");
1384 db_dictionary::open_log()
1386 WRITELOCK(this, -1, "w db_dictionary::open_log");
1390 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1392 "db_dictionary::reset_log: cannot allocate space",
1398 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1403 WARNING_M("db_dictionary::open_log: could not open log file: ");
1406 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1411 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1422 db_dictionary::db_standby(char *tab)
1426 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::db_standby");
1429 "wu db_dictionary::db_standby");
1436 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_standby");
1441 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_standby");
1447 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_standby");
1456 db_dictionary::find_table_desc(char *tab)
1460 READLOCK(this, NULL, "r db_dictionary::find_table_desc");
1466 READUNLOCK(this, ret, "r db_dictionary::find_table_desc");
1471 db_dictionary::find_table_desc(char *tab, bool_t searchDeferred) {
1474 READLOCK(this, NULL, "r db_dictionary::find_table_desc_d");
1484 READUNLOCK(this, ret, "r db_dictionary::find_table_desc_d");
1489 db_dictionary::find_table(char *tab, db_table_desc **where) {
1495 db_dictionary::find_table(char *tab, db_table_desc **where,
1501 db_dictionary::find_table(char *tab, db_table_desc **where,
1507 const char *myself = "db_dictionary::find_table";
1546 db_dictionary::find_table_noLDAP(char *tab, db_table_desc **where,
1556 READLOCK(this, NULL, "r db_dictionary::find_table");
1559 READUNLOCK(this, NULL, "ru db_dictionary::find_table");
1565 READUNLOCK(this, NULL, "ru db_dictionary::find_table");
1569 READUNLOCK(this, NULL, "ru db_dictionary::find_table");
1570 WRITELOCK(this, NULL, "w db_dictionary::find_table");
1574 WRITEUNLOCK(this, NULL, "wu db_dictionary::find_table");
1583 "db_dictionary::find_table: could not allocate space");
1584 FATAL3("db_dictionary::find_table: could not allocate space",
1590 * db_dictionary lock.
1592 WRITELOCKNR(dbase, lret, "w dbase db_dictionary::find_table");
1595 "db_dictionary::find_table: could not lock dbase");
1596 FATAL3("db_dictionary::find_table: could not lock dbase",
1601 WRITEUNLOCK(this, NULL, "wu db_dictionary::find_table");
1605 WRITEUNLOCK(dbase, dbase, "wu dbase db_dictionary::find_table");
1611 WARNING("db_dictionary::find_table: could not load database");
1618 db_dictionary::log_action(int action, char *tab, table_obj *tobj)
1620 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::log_action");
1628 "wu db_dictionary::log_action");
1637 "wu db_dictionary::log_action");
1645 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::log_action");
1656 db_dictionary::delete_table_aux(char *tab, int mode)
1660 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::delete_table_aux");
1663 "wu db_dictionary::delete_table_aux");
1670 "wu db_dictionary::delete_table_aux");
1681 "wu db_dictionary::delete_table_aux");
1693 "db_dictionary::delete_table: could not create db structure");
1695 "wu db_dictionary::delete_table_aux");
1705 WRITEUNLOCK(this, ret, "wu db_dictionary::delete_table_aux");
1718 db_dictionary::delete_table(char *tab)
1737 db_dictionary::add_table_aux(char *tab, table_obj* tobj, int mode)
1741 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::add_table_aux");
1744 "wu db_dictionary::add_table_aux");
1750 "wu db_dictionary::add_table_aux");
1760 "wu db_dictionary::add_table_aux");
1770 "db_dictionary::add_table: could not allocate space for db");
1772 "db_dictionary::add_table: could not allocate space for db",
1777 "db_dictionary::add_table: could not initialize database from scheme");
1781 "wu db_dictionary::add_table_aux");
1792 "wu db_dictionary::add_table_aux");
1799 WRITEUNLOCK(this, ret, "wu db_dictionary::add_table_aux");
1812 db_dictionary::add_table(char *tab, table_obj* tobj)
1823 db_dictionary::translate_to_query(db_table_desc* tbl, int numattrs,
1826 READLOCK(this, NULL, "r db_dictionary::translate_to_query");
1829 READUNLOCK(this, NULL, "ru db_dictionary::translate_to_query");
1836 "db_dictionary::translate: could not allocate space");
1837 FATAL3("db_dictionary::translate: could not allocate space",
1843 READUNLOCK(this, NULL, "ru db_dictionary::translate_to_query");
1846 READUNLOCK(this, NULL, "ru db_dictionary::translate_to_query");
1876 db_dictionary::get_table_names()
1878 READLOCK(this, NULL, "r db_dictionary::get_table_names");
1884 "db_dictionary::get_table_names: could not allocate space for names");
1886 "db_dictionary::get_table_names: could not allocate space for names",
1891 READUNLOCK(this, NULL, "ru db_dictionary::get_table_names");
1908 "db_dictionary::db_checkpoint: could not allocate space",
1913 "db_dictionary::db_checkpoint: could not load table %s",
1941 db_dictionary::db_checkpoint(char *tab)
1947 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::db_checkpoint");
1949 READUNLOCK(this, DB_LOCK_ERROR, "ru db_dictionary::db_checkpoint");
1955 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::db_checkpoint");
1959 READUNLOCK(this, ret, "ru db_dictionary::db_checkpoint");
1965 "ru db_dictionary::db_checkpoint");
1970 READUNLOCK(this, ret, "ru db_dictionary::db_checkpoint");
2011 "try w db_dictionary::close_standby_list");
2018 "db_dictionary::close_standby_list");
2150 db_dictionary::db_copy_dictionary(void) {
2155 WRITELOCK(this, NULL, "db_dictionary::db_copy_dictionary w");
2159 "db_dictionary::db_copy_dictionary wu");
2166 "db_dictionary::db_copy_dictionary wu: no memory");
2176 "db_dictionary::db_copy_dictionary wu: no memory");
2232 db_dictionary::defer(char *table) {
2234 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::defer");
2237 const char *myself = "db_dictionary::defer";
2255 "wu db_dictionary::defer");
2317 WRITEUNLOCK(this, ret, "wu db_dictionary::defer");
2331 db_dictionary::rollback(char *table) {
2333 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::rollback");
2338 WRITEUNLOCK(this, DB_NOTFOUND, "wu db_dictionary::rollback");
2351 WRITEUNLOCK(this, ret, "wu db_dictionary::rollback");
2374 WRITEUNLOCK(this, ret, "wu db_dictionary::rollback");
2390 "db_dictionary::rollback: rollback error %d for \"%s\"", ret, table);
2393 WRITEUNLOCK(this, ret, "wu db_dictionary::rollback");
2402 db_dictionary::commit(char *table) {
2404 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::commit");
2409 WRITEUNLOCK(this, ret, "wu db_dictionary::commit");
2421 WRITEUNLOCK(this, ret, "wu db_dictionary::commit");
2430 db_dictionary::setNoWriteThrough(void) {
2436 db_dictionary::clearNoWriteThrough(void) {