Debugging

master
Oliver Kennedy 2016-10-06 20:31:35 -04:00
parent a4cd033a9a
commit 404aca80e7
4 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,4 @@
*.o
qgen
dbgen
dbgen
*.tbl

View File

@ -91,7 +91,7 @@ WORKLOAD = TPCH
#
# add -EDTERABYTE if orderkey will execeed 32 bits (SF >= 300)
# and make the appropriate change in gen_schema() of runit.sh
CFLAGS = -O -DDBNAME=\"dss\" -D$(MACHINE) -D$(DATABASE) -D$(WORKLOAD)
CFLAGS = -g -DDBNAME=\"dss\" -D$(MACHINE) -D$(DATABASE) -D$(WORKLOAD)
LDFLAGS = -g
# The OBJ,EXE and LIB macros will need to be changed for compilation under
# Windows NT

View File

@ -392,6 +392,7 @@ tbl_open(int tbl, char *mode)
struct stat fstats;
int retcode;
bzero(&fstats, sizeof(fstats));
if (*tdefs[tbl].name == PATH_SEP)
strcpy(fullpath, tdefs[tbl].name);

View File

@ -1581,6 +1581,13 @@ pr_supp(supplier_t *supp, int mode)
if ((long)j > threshold) {
if (!COUNT_ONLY) {
printf("%ld\n",crt_cid);
printf("%c1\n",SEPARATOR);
printf("%c\n",SEPARATOR);
printf("%lld\n",supp->suppkey);
printf("%c\n",SEPARATOR);
printf("%lld\n",supp->suppkey);
printf("%d\n",supp_s_suppkey);
PR_STRT(supp_s_suppkey);
fprintf(supp_s_suppkey, "%ld%c1%c%lld%c%lld",crt_cid,SEPARATOR,SEPARATOR,supp->suppkey,SEPARATOR,
supp->suppkey);