Lines Matching defs:table

143 /* Create new table descriptor using given table name and table_object. */
151 "db_dictionary::add_table: could not allocate space for new table",
176 "db_dictionary::add_table: could not allocate space for table name",
210 /* delete table */
272 * Remove entry with the specified hashvalue and target table name.
380 /* Returns the next size to use for the hash table */
403 * Old table is deleted after the relocation.
417 FATAL("db_dictionary::grow: table size exceeds calloc limit",
508 * If successful, decrement count of number of entries in hash table.
538 * Increment count of number of entries in index table and grow table
539 * if number of entries equals size of table.
542 * db_table_desc *td pointer to table entry to be added. The
546 * table entries, they may be either linked into
580 /* increase hash table size if number of entries equals table size */
1106 * whether table has been initialized successfully.
1293 status = f.transfer(&dictionary); /* dump table descs */
1452 * Returns db_table_desc of table name 'tab'. 'prev', if supplied,
1539 * Return database structure of table named by 'tab'.
1650 // 1. If there is an entry in the log, the physical table exists and is
1652 // 2. If there is no entry in the log, the physical table may or may not
1668 if ((tbl = find_table_desc(tab)) == NULL) { // table not found
1710 * Delete table with given name 'tab' from dictionary.
1711 * Returns error code if table does not exist or if dictionary has not been
1715 * Note that the files associated with the table are also removed.
1724 // 1. If there is an entry in the log, then the physical table exists and
1726 // 2. If there is no entry in the log, the physical table may or may not
1728 // it. The next time we add a table with the same name to the dictionary,
1730 // This mode is used when the table is first created.
1751 return (DB_NOTUNIQUE); // table already exists
1754 // create data structures for table
1765 // create physical structures for table
1804 * Add table with given name 'tab' and description 'zdesc' to dictionary.
1805 * Returns errror code if table already exists, or if no memory can be found
1820 * table does not have a scheme (which should be a fatal error?).
1913 "db_dictionary::db_checkpoint: could not load table %s",
2184 /* For each table ... */
2224 * Set deferred commit mode. To do this, we make a copy of the table
2227 * to see the pre-resync data. Meanwhile, any changes (including table
2228 * deletes) are done to the (temporarily hidden to clients) table in
2232 db_dictionary::defer(char *table) {
2235 db_table_desc *tbl = find_table_desc(table);
2267 clone->database = new db(table);
2277 myself, NIL(table));
2281 myself, NIL(table));
2289 myself, NIL(table));
2324 * serving the table until we can try a full dump again.
2326 * The rollback is done by removing (and deleting) the updated table from
2327 * the dictionary, and then moving the saved table from the deferred
2331 db_dictionary::rollback(char *table) {
2334 db_table_desc *old = search_dictionary(deferred.dictionary, table);
2335 db_table_desc *upd = search_dictionary(dictionary, table);
2346 ret = remove_from_dictionary(deferred.dictionary, table, FALSE);
2360 * the table has been removed while we were in deferred mode, and
2364 ret = remove_from_dictionary(dictionary, table, FALSE);
2390 "db_dictionary::rollback: rollback error %d for \"%s\"", ret, table);
2402 db_dictionary::commit(char *table) {
2405 db_table_desc *old = search_dictionary(deferred.dictionary, table);
2413 ret = remove_from_dictionary(deferred.dictionary, table, FALSE);