Lines Matching defs:table

146 /* Create new table descriptor using given table name and table_object. */
154 "db_dictionary::add_table: could not allocate space for new table",
179 "db_dictionary::add_table: could not allocate space for table name",
213 /* delete table */
275 * Remove entry with the specified hashvalue and target table name.
383 /* Returns the next size to use for the hash table */
406 * Old table is deleted after the relocation.
420 FATAL("db_dictionary::grow: table size exceeds calloc limit",
511 * If successful, decrement count of number of entries in hash table.
541 * Increment count of number of entries in index table and grow table
542 * if number of entries equals size of table.
545 * db_table_desc *td pointer to table entry to be added. The
549 * table entries, they may be either linked into
583 /* increase hash table size if number of entries equals table size */
1109 * whether table has been initialized successfully.
1296 status = f.transfer(&dictionary); /* dump table descs */
1455 * Returns db_table_desc of table name 'tab'. 'prev', if supplied,
1542 * Return database structure of table named by 'tab'.
1653 // 1. If there is an entry in the log, the physical table exists and is
1655 // 2. If there is no entry in the log, the physical table may or may not
1671 if ((tbl = find_table_desc(tab)) == NULL) { // table not found
1713 * Delete table with given name 'tab' from dictionary.
1714 * Returns error code if table does not exist or if dictionary has not been
1718 * Note that the files associated with the table are also removed.
1727 // 1. If there is an entry in the log, then the physical table exists and
1729 // 2. If there is no entry in the log, the physical table may or may not
1731 // it. The next time we add a table with the same name to the dictionary,
1733 // This mode is used when the table is first created.
1754 return (DB_NOTUNIQUE); // table already exists
1757 // create data structures for table
1768 // create physical structures for table
1807 * Add table with given name 'tab' and description 'zdesc' to dictionary.
1808 * Returns errror code if table already exists, or if no memory can be found
1823 * table does not have a scheme (which should be a fatal error?).
1916 "db_dictionary::db_checkpoint: could not load table %s",
2187 /* For each table ... */
2227 * Set deferred commit mode. To do this, we make a copy of the table
2230 * to see the pre-resync data. Meanwhile, any changes (including table
2231 * deletes) are done to the (temporarily hidden to clients) table in
2235 db_dictionary::defer(char *table) {
2238 db_table_desc *tbl = find_table_desc(table);
2270 clone->database = new db(table);
2280 myself, NIL(table));
2284 myself, NIL(table));
2292 myself, NIL(table));
2327 * serving the table until we can try a full dump again.
2329 * The rollback is done by removing (and deleting) the updated table from
2330 * the dictionary, and then moving the saved table from the deferred
2334 db_dictionary::rollback(char *table) {
2337 db_table_desc *old = search_dictionary(deferred.dictionary, table);
2338 db_table_desc *upd = search_dictionary(dictionary, table);
2349 ret = remove_from_dictionary(deferred.dictionary, table, FALSE);
2363 * the table has been removed while we were in deferred mode, and
2367 ret = remove_from_dictionary(dictionary, table, FALSE);
2393 "db_dictionary::rollback: rollback error %d for \"%s\"", ret, table);
2405 db_dictionary::commit(char *table) {
2408 db_table_desc *old = search_dictionary(deferred.dictionary, table);
2416 ret = remove_from_dictionary(deferred.dictionary, table, FALSE);