Lines Matching defs:db_dictionary

23  *	db_dictionary.cc
31 #include "db_dictionary.h"
55 extern db_dictionary *InUseDictionary;
56 extern db_dictionary *FreeDictionary;
112 "db_dictionary: invalid dictionary format! Expecting %s",
115 "db_dictionary: invalid dictionary format! Expecting %s\n",
148 db_dictionary::create_table_desc(char *tab, table_obj* zdesc,
154 "db_dictionary::add_table: could not allocate space for new table",
165 "db_dictionary::add_table: could not allocate space for scheme",
171 "db_dictionary::add_table: could not translate table_obj to scheme");
179 "db_dictionary::add_table: could not allocate space for table name",
420 FATAL("db_dictionary::grow: table size exceeds calloc limit",
427 FATAL("db_dictionary::grow: cannot allocate space",
611 db_dictionary::db_dictionary()
637 db_dictionary::db_clone_bucket(db_table_desc *bucket, db_table_desc **clone)
643 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::db_clone_bucket");
649 "db_dictionary::insert_modified_table: out of memory");
650 FATAL3("db_dictionary::insert_modified_table: out of memory",
658 "db_dictionary::insert_modified_table: xdr encode failed");
660 "db_dictionary::insert_modified_table: xdr encode failed.",
668 "db_dictionary::insert_modified_table: out of memory");
669 FATAL3("db_dictionary::insert_modified_table: out of memory",
679 "db_dictionary::insert_modified_table: xdr encode failed");
681 "db_dictionary::insert_modified_table: xdr encode failed.",
686 READUNLOCK(this, DB_LOCK_ERROR, "ru db_dictionary::db_clone_bucket");
692 db_dictionary::change_table_name(db_table_desc *clone, char *tok, char *repl)
697 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::change_table_name");
717 "db_dictionary::change_table_name: out of memory");
718 FATAL3("db_dictionary::change_table_name: out of memory.",
735 "wu db_dictionary::change_table_name");
748 db_dictionary::inittemp(char *dictname, db_dictionary& curdict)
755 WRITELOCK(this, FALSE, "w db_dictionary::inittemp");
758 WRITEUNLOCK(this, FALSE, "wu db_dictionary::inittemp");
766 "db_dictionary::inittemp: could not allocate space");
767 FATAL3("db_dictionary::inittemp: could not allocate space",
775 "db_dictionary::inittemp: could not allocate space");
776 FATAL3("db_dictionary::inittemp: could not allocate space",
784 "db_dictionary::inittemp: cannot allocate space");
785 FATAL3("db_dictionary::inittemp: cannot allocate space",
800 "db_dictionary::inittemp: could not allocate space");
802 "db_dictionary::inittemp: could not allocate space",
811 "db_dictionary::inittemp: cannot allocate space");
813 "db_dictionary::inittemp: cannot allocate space",
828 WRITEUNLOCK(this, FALSE, "wu db_dictionary::inittemp");
840 db_dictionary::massage_dict(char *newdictname, char *tok, char *repl)
847 db_dictionary *tmpptr;
849 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::massage_dict");
852 "db_dictionary::massage_dict: uninitialized dictionary file");
854 "db_dictionary::massage_dict: uninitialized dictionary file.",
860 "wu db_dictionary::massage_dict");
866 WRITEUNLOCK(this, status, "wu db_dictionary::massage_dict");
886 "wu db_dictionary::massage_dict");
892 "wu db_dictionary::massage_dict");
906 "wu db_dictionary::massage_dict");
914 "wu db_dictionary::massage_dict");
924 "wu db_dictionary::massage_dict");
926 "db_dictionary::massage_dict: Unable to dump new dictionary.",
940 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::massage_dict");
946 db_dictionary::merge_dict(db_dictionary& tempdict, char *tok, char *repl)
954 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::merge_dict");
963 "wu db_dictionary::merge_dict");
975 "wu db_dictionary::merge_dict");
986 "wu db_dictionary::merge_dict");
994 "wu db_dictionary::merge_dict");
1008 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::merge_dict");
1013 db_dictionary::copyfile(char *infile, char *outfile)
1019 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::copyfile");
1029 READUNLOCK(this, DB_LOCK_ERROR, "ru db_dictionary::copyfile");
1037 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::copyfile");
1041 "ru db_dictionary::copyfile");
1046 READUNLOCK(this, ret, "ru db_dictionary::copyfile");
1052 db_dictionary::extract_entries(db_dictionary& tempdict, char **fs, int fscnt)
1059 READLOCK(this, FALSE, "r db_dictionary::extract_entries");
1067 "ru db_dictionary::extract_entries");
1082 "ru db_dictionary::extract_entries");
1089 "ru db_dictionary::extract_entries");
1095 "ru db_dictionary::extract_entries");
1099 "ru db_dictionary::extract_entries");
1112 db_dictionary::init(char *file)
1116 WRITELOCK(this, FALSE, "w db_dictionary::init");
1123 "db_dictionary::init: could not allocate space");
1124 FATAL3("db_dictionary::init: could not allocate space",
1132 "db_dictionary::init: could not allocate space");
1133 FATAL3("db_dictionary::init: could not allocate space",
1141 "db_dictionary::init: cannot allocate space");
1142 FATAL3("db_dictionary::init: cannot allocate space",
1158 "db_dictionary::init: could not allocate space");
1159 FATAL3("db_dictionary::init: could not allocate space",
1181 WRITEUNLOCK(this, initialized, "wu db_dictionary::init");
1195 db_dictionary *dict = (db_dictionary*) dictchar;
1229 db_dictionary::incorporate_log(char *file_name)
1234 WRITELOCK(this, -1, "w db_dictionary::incorporate_log");
1238 WRITEUNLOCK(this, -1, "wu db_dictionary::incorporate_log");
1245 db_dictionary::db_shutdown()
1247 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::db_shutdown");
1250 "wu db_dictionary::db_shutdown");
1274 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_shutdown");
1283 db_dictionary::dump()
1287 READLOCK(this, -1, "r db_dictionary::dump");
1289 READUNLOCK(this, -1, "ru db_dictionary::dump");
1298 WARNING("db_dictionary::dump: could not write out dictionary");
1300 WARNING_M("db_dictionary::dump: could not rename temp file: ");
1304 READUNLOCK(this, -1, "ru db_dictionary::dump");
1318 db_dictionary::checkpoint()
1320 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::checkpoint");
1324 "wu db_dictionary::checkpoint");
1335 "db_dictionary::checkpoint: could not dump dictionary: ");
1339 "wu db_dictionary::checkpoint");
1346 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::checkpoint");
1352 db_dictionary::reset_log()
1354 WRITELOCK(this, -1, "w db_dictionary::reset_log");
1361 "db_dictionary::reset_log: could not close log file: ");
1368 WRITEUNLOCK(this, -1, "wu db_dictionary::reset_log");
1374 db_dictionary::close_log()
1376 WRITELOCK(this, -1, "w db_dictionary::close_log");
1381 WRITEUNLOCK(this, -1, "wu db_dictionary::close_log");
1387 db_dictionary::open_log()
1389 WRITELOCK(this, -1, "w db_dictionary::open_log");
1393 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1395 "db_dictionary::reset_log: cannot allocate space",
1401 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1406 WARNING_M("db_dictionary::open_log: could not open log file: ");
1409 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1414 WRITEUNLOCK(this, -1, "wu db_dictionary::open_log");
1425 db_dictionary::db_standby(char *tab)
1429 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::db_standby");
1432 "wu db_dictionary::db_standby");
1439 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_standby");
1444 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_standby");
1450 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::db_standby");
1459 db_dictionary::find_table_desc(char *tab)
1463 READLOCK(this, NULL, "r db_dictionary::find_table_desc");
1469 READUNLOCK(this, ret, "r db_dictionary::find_table_desc");
1474 db_dictionary::find_table_desc(char *tab, bool_t searchDeferred) {
1477 READLOCK(this, NULL, "r db_dictionary::find_table_desc_d");
1487 READUNLOCK(this, ret, "r db_dictionary::find_table_desc_d");
1492 db_dictionary::find_table(char *tab, db_table_desc **where) {
1498 db_dictionary::find_table(char *tab, db_table_desc **where,
1504 db_dictionary::find_table(char *tab, db_table_desc **where,
1510 const char *myself = "db_dictionary::find_table";
1549 db_dictionary::find_table_noLDAP(char *tab, db_table_desc **where,
1559 READLOCK(this, NULL, "r db_dictionary::find_table");
1562 READUNLOCK(this, NULL, "ru db_dictionary::find_table");
1568 READUNLOCK(this, NULL, "ru db_dictionary::find_table");
1572 READUNLOCK(this, NULL, "ru db_dictionary::find_table");
1573 WRITELOCK(this, NULL, "w db_dictionary::find_table");
1577 WRITEUNLOCK(this, NULL, "wu db_dictionary::find_table");
1586 "db_dictionary::find_table: could not allocate space");
1587 FATAL3("db_dictionary::find_table: could not allocate space",
1593 * db_dictionary lock.
1595 WRITELOCKNR(dbase, lret, "w dbase db_dictionary::find_table");
1598 "db_dictionary::find_table: could not lock dbase");
1599 FATAL3("db_dictionary::find_table: could not lock dbase",
1604 WRITEUNLOCK(this, NULL, "wu db_dictionary::find_table");
1608 WRITEUNLOCK(dbase, dbase, "wu dbase db_dictionary::find_table");
1614 WARNING("db_dictionary::find_table: could not load database");
1621 db_dictionary::log_action(int action, char *tab, table_obj *tobj)
1623 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::log_action");
1631 "wu db_dictionary::log_action");
1640 "wu db_dictionary::log_action");
1648 WRITEUNLOCK(this, DB_LOCK_ERROR, "wu db_dictionary::log_action");
1659 db_dictionary::delete_table_aux(char *tab, int mode)
1663 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::delete_table_aux");
1666 "wu db_dictionary::delete_table_aux");
1673 "wu db_dictionary::delete_table_aux");
1684 "wu db_dictionary::delete_table_aux");
1696 "db_dictionary::delete_table: could not create db structure");
1698 "wu db_dictionary::delete_table_aux");
1708 WRITEUNLOCK(this, ret, "wu db_dictionary::delete_table_aux");
1721 db_dictionary::delete_table(char *tab)
1740 db_dictionary::add_table_aux(char *tab, table_obj* tobj, int mode)
1744 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::add_table_aux");
1747 "wu db_dictionary::add_table_aux");
1753 "wu db_dictionary::add_table_aux");
1763 "wu db_dictionary::add_table_aux");
1773 "db_dictionary::add_table: could not allocate space for db");
1775 "db_dictionary::add_table: could not allocate space for db",
1780 "db_dictionary::add_table: could not initialize database from scheme");
1784 "wu db_dictionary::add_table_aux");
1795 "wu db_dictionary::add_table_aux");
1802 WRITEUNLOCK(this, ret, "wu db_dictionary::add_table_aux");
1815 db_dictionary::add_table(char *tab, table_obj* tobj)
1826 db_dictionary::translate_to_query(db_table_desc* tbl, int numattrs,
1829 READLOCK(this, NULL, "r db_dictionary::translate_to_query");
1832 READUNLOCK(this, NULL, "ru db_dictionary::translate_to_query");
1839 "db_dictionary::translate: could not allocate space");
1840 FATAL3("db_dictionary::translate: could not allocate space",
1846 READUNLOCK(this, NULL, "ru db_dictionary::translate_to_query");
1849 READUNLOCK(this, NULL, "ru db_dictionary::translate_to_query");
1879 db_dictionary::get_table_names()
1881 READLOCK(this, NULL, "r db_dictionary::get_table_names");
1887 "db_dictionary::get_table_names: could not allocate space for names");
1889 "db_dictionary::get_table_names: could not allocate space for names",
1894 READUNLOCK(this, NULL, "ru db_dictionary::get_table_names");
1911 "db_dictionary::db_checkpoint: could not allocate space",
1916 "db_dictionary::db_checkpoint: could not load table %s",
1944 db_dictionary::db_checkpoint(char *tab)
1950 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::db_checkpoint");
1952 READUNLOCK(this, DB_LOCK_ERROR, "ru db_dictionary::db_checkpoint");
1958 READLOCK(this, DB_LOCK_ERROR, "r db_dictionary::db_checkpoint");
1962 READUNLOCK(this, ret, "ru db_dictionary::db_checkpoint");
1968 "ru db_dictionary::db_checkpoint");
1973 READUNLOCK(this, ret, "ru db_dictionary::db_checkpoint");
2014 "try w db_dictionary::close_standby_list");
2021 "db_dictionary::close_standby_list");
2153 db_dictionary::db_copy_dictionary(void) {
2158 WRITELOCK(this, NULL, "db_dictionary::db_copy_dictionary w");
2162 "db_dictionary::db_copy_dictionary wu");
2169 "db_dictionary::db_copy_dictionary wu: no memory");
2179 "db_dictionary::db_copy_dictionary wu: no memory");
2235 db_dictionary::defer(char *table) {
2237 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::defer");
2240 const char *myself = "db_dictionary::defer";
2258 "wu db_dictionary::defer");
2320 WRITEUNLOCK(this, ret, "wu db_dictionary::defer");
2334 db_dictionary::rollback(char *table) {
2336 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::rollback");
2341 WRITEUNLOCK(this, DB_NOTFOUND, "wu db_dictionary::rollback");
2354 WRITEUNLOCK(this, ret, "wu db_dictionary::rollback");
2377 WRITEUNLOCK(this, ret, "wu db_dictionary::rollback");
2393 "db_dictionary::rollback: rollback error %d for \"%s\"", ret, table);
2396 WRITEUNLOCK(this, ret, "wu db_dictionary::rollback");
2405 db_dictionary::commit(char *table) {
2407 WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::commit");
2412 WRITEUNLOCK(this, ret, "wu db_dictionary::commit");
2424 WRITEUNLOCK(this, ret, "wu db_dictionary::commit");
2433 db_dictionary::setNoWriteThrough(void) {
2439 db_dictionary::clearNoWriteThrough(void) {