Lines Matching defs:database
74 * DB_CURRENT_VERSION is the latest one with changes in the database format
142 if (current->database != NULL) delete current->database;
158 newtab->database = NULL;
897 * just add to the in-memory database and dump
1045 ret = tbl->database->dump(outfile) ? DB_SUCCESS : DB_INTERNAL_ERROR;
1073 tbl_ent.database = tbl->database;
1279 * Dump contents of this dictionary (minus the database representations)
1448 if (tbl->database != NULL)
1449 tbl->database->close_log();
1542 * Return database structure of table named by 'tab'.
1544 * If the database is loaded in from stable store if it has not been loaded.
1566 if (tbl->database != NULL || !doLoad) {
1567 if (tbl->database && where) *where = tbl;
1569 return (tbl->database); // return handle
1575 if (tbl->database != NULL) {
1578 return (tbl->database); // return handle
1581 // need to load in/init database
1602 /* Assign tbl->database, and then release the 'this' lock */
1603 tbl->database = dbase;
1606 if (dbase->load()) { // try to load in database
1613 tbl->database = NULL;
1614 WARNING("db_dictionary::find_table: could not load database");
1689 db *dbase = tbl->database;
1736 // updated. This mode is used when the database gets loaded and the internal
1769 new_table->database = new db(tab);
1770 if (new_table->database == NULL) {
1778 if (new_table->database->init(new_table->scheme) == 0) {
1780 "db_dictionary::add_table: could not initialize database from scheme");
1781 new_table->database->remove_files();
1792 new_table->database->remove_files();
1907 if (current->database == NULL) { /* need to load it in */
1924 status = current->database->checkpoint();
1993 db *database;
2005 if ((database = db_standby_list[i])) {
2013 TRYWRITELOCK(database, lockok,
2017 database->close_log(1);
2020 WRITEUNLOCK(database, db_standby_count == 0,
2040 * Add given database to list of databases that have been opened for updates.
2045 add_to_standby_list(db* database)
2052 if (database == 0) {
2089 db_standby_list[i] = database;
2102 remove_from_standby_list(db* database)
2108 if (database == 0) {
2114 if ((database == db_standby_list[i])) {
2268 /* Initialize and load the database for the clone */
2269 if (clone->database == 0) {
2270 clone->database = new db(table);
2271 if (clone->database != 0) {
2272 if (clone->database->load()) {
2285 delete clone->database;
2286 clone->database = 0;
2296 if (clone->database != 0) {
2297 clone->database->markDeferred();
2302 delete clone->database;
2303 clone->database = 0;
2358 if (old->database != 0)
2359 old->database->unmarkDeferred();