Lines Matching defs:database

71  * DB_CURRENT_VERSION is the latest one with changes in the database format
139 if (current->database != NULL) delete current->database;
155 newtab->database = NULL;
894 * just add to the in-memory database and dump
1042 ret = tbl->database->dump(outfile) ? DB_SUCCESS : DB_INTERNAL_ERROR;
1070 tbl_ent.database = tbl->database;
1276 * Dump contents of this dictionary (minus the database representations)
1445 if (tbl->database != NULL)
1446 tbl->database->close_log();
1539 * Return database structure of table named by 'tab'.
1541 * If the database is loaded in from stable store if it has not been loaded.
1563 if (tbl->database != NULL || !doLoad) {
1564 if (tbl->database && where) *where = tbl;
1566 return (tbl->database); // return handle
1572 if (tbl->database != NULL) {
1575 return (tbl->database); // return handle
1578 // need to load in/init database
1599 /* Assign tbl->database, and then release the 'this' lock */
1600 tbl->database = dbase;
1603 if (dbase->load()) { // try to load in database
1610 tbl->database = NULL;
1611 WARNING("db_dictionary::find_table: could not load database");
1686 db *dbase = tbl->database;
1733 // updated. This mode is used when the database gets loaded and the internal
1766 new_table->database = new db(tab);
1767 if (new_table->database == NULL) {
1775 if (new_table->database->init(new_table->scheme) == 0) {
1777 "db_dictionary::add_table: could not initialize database from scheme");
1778 new_table->database->remove_files();
1789 new_table->database->remove_files();
1904 if (current->database == NULL) { /* need to load it in */
1921 status = current->database->checkpoint();
1990 db *database;
2002 if ((database = db_standby_list[i])) {
2010 TRYWRITELOCK(database, lockok,
2014 database->close_log(1);
2017 WRITEUNLOCK(database, db_standby_count == 0,
2037 * Add given database to list of databases that have been opened for updates.
2042 add_to_standby_list(db* database)
2049 if (database == 0) {
2086 db_standby_list[i] = database;
2099 remove_from_standby_list(db* database)
2105 if (database == 0) {
2111 if ((database == db_standby_list[i])) {
2265 /* Initialize and load the database for the clone */
2266 if (clone->database == 0) {
2267 clone->database = new db(table);
2268 if (clone->database != 0) {
2269 if (clone->database->load()) {
2282 delete clone->database;
2283 clone->database = 0;
2293 if (clone->database != 0) {
2294 clone->database->markDeferred();
2299 delete clone->database;
2300 clone->database = 0;
2355 if (old->database != 0)
2356 old->database->unmarkDeferred();