1
0

tpcds-buffered.patch 455 B

123456789101112131415161718192021
  1. diff --git print.c print.c
  2. index 1b64362..5108bd7 100644
  3. --- print.c
  4. +++ print.c
  5. @@ -68,6 +68,7 @@ print_close(int tbl)
  6. fpOutfile = NULL;
  7. if (pTdef->outfile)
  8. {
  9. + fflush(pTdef->outfile);
  10. fclose(pTdef->outfile);
  11. pTdef->outfile = NULL;
  12. }
  13. @@ -536,7 +538,7 @@ print_end (int tbl)
  14. if (add_term)
  15. fwrite(term, 1, add_term, fpOutfile);
  16. fprintf (fpOutfile, "\n");
  17. - fflush(fpOutfile);
  18. + //fflush(fpOutfile);
  19. return (res);
  20. }