Lines Matching refs:tbl

355 print_table(db_table_desc *tbl)
357 if (tbl == NULL)
359 printf("%s: %d\n", tbl->table_name, tbl->hashval);
592 transfer_aux(XDR* x, pptr tbl)
594 return (xdr_db_dict_desc_p(x, (db_dict_desc_p *) tbl));
948 db_table_desc *tbl = NULL, *clone = NULL, *next_td = NULL;
954 tbl = tempdict.dictionary->tables.tables_val[i];
955 if (!tbl)
957 retval = db_clone_bucket(tbl, &clone);
1012 db_table_desc *tbl = NULL;
1023 dbase = find_table(infile, &tbl, TRUE, TRUE, FALSE);
1027 dbase = find_table(infile, &tbl, TRUE, TRUE, TRUE);
1031 * Read-lock again, and get a 'tbl' we can use since we're
1035 dbase = find_table(infile, &tbl, TRUE, TRUE, FALSE);
1042 ret = tbl->database->dump(outfile) ? DB_SUCCESS : DB_INTERNAL_ERROR;
1052 db_table_desc *tbl, *clone;
1058 tbl = find_table_desc(fs[i]);
1059 if (!tbl) {
1067 tbl_ent.table_name = tbl->table_name;
1068 tbl_ent.hashval = tbl->hashval;
1069 tbl_ent.scheme = tbl->scheme;
1070 tbl_ent.database = tbl->database;
1424 db_table_desc *tbl;
1440 if ((tbl = find_table_desc(tab)) == NULL) {
1445 if (tbl->database != NULL)
1446 tbl->database->close_log();
1552 db_table_desc* tbl;
1557 tbl = find_table_desc(tab, searchDeferred);
1558 if (tbl == NULL) {
1563 if (tbl->database != NULL || !doLoad) {
1564 if (tbl->database && where) *where = tbl;
1566 return (tbl->database); // return handle
1572 if (tbl->database != NULL) {
1573 if (where) *where = tbl;
1575 return (tbl->database); // return handle
1599 /* Assign tbl->database, and then release the 'this' lock */
1600 tbl->database = dbase;
1604 if (where) *where = tbl;
1610 tbl->database = NULL;
1667 db_table_desc *tbl;
1668 if ((tbl = find_table_desc(tab)) == NULL) { // table not found
1686 db *dbase = tbl->database;
1823 db_dictionary::translate_to_query(db_table_desc* tbl, int numattrs,
1828 tbl->scheme == NULL || numattrs == 0 || attrlist == NULL) {
1833 db_query *q = new db_query(tbl->scheme, numattrs, attrlist);
1854 get_table_name(db_table_desc* tbl)
1856 if (tbl)
1861 strdup(tbl->table_name);
1943 db_table_desc *tbl;
1963 if ((tbl = find_table_desc(tab)) == NULL) {
1969 ret = db_checkpoint_aux(tbl);
2186 db_table_desc_p tbl = NULL,
2193 if (tbl != NULL) {
2194 tbl->next = n;
2198 tbl = n;
2235 db_table_desc *tbl = find_table_desc(table);
2239 if (tbl != NULL) {
2240 db_table_desc *clone, *savenext = tbl->next;
2245 tbl->next = NULL;
2246 res = db_clone_bucket(tbl, &clone);
2248 tbl->next = savenext;