$CASE/04s522/lcp_pr_load.diffs - for ajlopez/lcp/*/pr_load.c (4 cases): saturn.cs.uml.edu(6)> grep 'can not open .* to find TS data' */*.c grep 'can not open .* to find TS data' */*.c Team1/pr_load.c:1619: printf("can not open %s to find TS data\n", scan_filename); pr_util/pr_load.c:1627: printf("can not open %s to find TS data\n", scan_filename); team/pr_load.c:1627: printf("can not open %s to find TS data\n", scan_filename); test/pr_load.c:1625: printf("can not open %s to find TS data\n", scan_filename); saturn.cs.uml.edu(7)> diff Team1/pr_load.c pr_util/pr_load.c|wc diff Team1/pr_load.c pr_util/pr_load.c | wc 70 222 1809 saturn.cs.uml.edu(8)> diff team/pr_load.c test/pr_load.c diff team/pr_load.c test/pr_load.c 3c3 < /* Schema : schema/Hominid.sch */ --- > /* Schema : ../schema/Hominid.sch */ 13,15c13 < #include "th.h" < < extern char *logfile; --- > #include "Hominid.h" saturn.cs.uml.edu(9)> diff Team1/pr_load.c team/pr_load.c|wc diff Team1/pr_load.c team/pr_load.c | wc 67 215 1764 saturn.cs.uml.edu(10)> diff pr_util/pr_load.c test/pr_load.c|wc diff pr_util/pr_load.c test/pr_load.c | wc 7 20 210 saturn.cs.uml.edu(11)> diff pr_util/pr_load.c test/pr_load.c diff pr_util/pr_load.c test/pr_load.c 3c3 < /* Schema : schema/Hominid.sch */ --- > /* Schema : ../schema/Hominid.sch */ 14,15d13 < < extern char *logfile; saturn.cs.uml.edu(12)> pwd pwd /nfs/earth/misc/proj3/case/04s522/ajlopez/lcp saturn.cs.uml.edu(13)> ================================================= saturn.cs.uml.edu(22)> cd ajlopez/lcp cd ajlopez/lcp saturn.cs.uml.edu(23)> diff Team1/pr_load.c team/pr_load.c diff Team1/pr_load.c team/pr_load.c 3c3 < /* Schema : th.sch */ --- > /* Schema : schema/Hominid.sch */ 14a15,16 > extern char *logfile; > 27a30,32 > extern int pr_replay(char *, char *, int, int); > int replayStatus; > int take_endsnapshot; 139c144 < if (strcmp(viewname,hcg_view_list.view_list[hcg_view_idx].view_name) == 0) --- > { if (strcmp(viewname,hcg_view_list.view_list[hcg_view_idx].view_name) == 0) 140a146 > } 1598c1604,1606 < hcg_table_seq_list[hcg_tbl_idx].rcount = hcg_table_seq_list[hcg_tbl_idx].maxver = 0; --- > { hcg_table_seq_list[hcg_tbl_idx].rcount = > hcg_table_seq_list[hcg_tbl_idx].maxver = 0; > } 2483,2486c2491 < void do_pr_add (viewname, tbl_abbrv, tbl_ptr) < char viewname[]; < char tbl_abbrv[]; < hcg_ptr tbl_ptr; --- > void do_pr_add (char *viewname, char *tbl_abbrv, hcg_ptr tbl_ptr) 2768,2769c2773 < void load_data(viewname) < char viewname[]; --- > int load_data( char *viewname) 2783a2788,2797 > if ( strlen(hcg_t) == 2 ) { > if( strcmp( hcg_t, "SR") == 0 ) { > #ifdef DEBUG > printf("StartLog command found: \n"); > printf("Replay logfile is %s \n", logfile); > #endif > return 1; > } > } > else 2848c2862 < //printf("Row to be added = %s\n", buffer); --- > printf("Row to be added = %s\n", buffer); 3207c3221,3222 < --- > int doReplay; > if ( hcg_log == 1 ) { 3212c3227 < --- > } 3229c3244 < load_data (viewname); --- > doReplay = load_data (viewname); 3230a3246,3248 > if( doReplay ) { > replayStatus = pr_replay(viewname, file_name, 1, 1); > } saturn.cs.uml.edu(24)> ===================================================== saturn.cs.uml.edu(25)> diff Team1/pr_load.c pr_util/pr_load.c diff Team1/pr_load.c pr_util/pr_load.c 3c3 < /* Schema : th.sch */ --- > /* Schema : schema/Hominid.sch */ 13c13,15 < #include "th.h" --- > #include "Hominid.h" > > extern char *logfile; 27a30,32 > extern int pr_replay(char *, char *, int, int); > int replayStatus; > int take_endsnapshot; 139c144 < if (strcmp(viewname,hcg_view_list.view_list[hcg_view_idx].view_name) == 0) --- > { if (strcmp(viewname,hcg_view_list.view_list[hcg_view_idx].view_name) == 0) 140a146 > } 1598c1604,1606 < hcg_table_seq_list[hcg_tbl_idx].rcount = hcg_table_seq_list[hcg_tbl_idx].maxver = 0; --- > { hcg_table_seq_list[hcg_tbl_idx].rcount = > hcg_table_seq_list[hcg_tbl_idx].maxver = 0; > } 2483,2486c2491 < void do_pr_add (viewname, tbl_abbrv, tbl_ptr) < char viewname[]; < char tbl_abbrv[]; < hcg_ptr tbl_ptr; --- > void do_pr_add (char *viewname, char *tbl_abbrv, hcg_ptr tbl_ptr) 2768,2769c2773 < void load_data(viewname) < char viewname[]; --- > int load_data( char *viewname) 2783a2788,2797 > if ( strlen(hcg_t) == 2 ) { > if( strcmp( hcg_t, "SR") == 0 ) { > #ifdef DEBUG > printf("StartLog command found: \n"); > printf("Replay logfile is %s \n", logfile); > #endif > return 1; > } > } > else 2848c2862 < //printf("Row to be added = %s\n", buffer); --- > printf("Row to be added = %s\n", buffer); 3207c3221,3222 < --- > int doReplay; > if ( hcg_log == 1 ) { 3212c3227 < --- > } 3229c3244 < load_data (viewname); --- > doReplay = load_data (viewname); 3230a3246,3248 > if( doReplay ) { > replayStatus = pr_replay(viewname, file_name, 1, 1); > } saturn.cs.uml.edu(26)> ==========================================