Changeset: d53c7fdb42fc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d53c7fdb42fc
Modified Files:
        sql/backends/monet5/rel_bin.c
        sql/backends/monet5/sql_result.c
Branch: directappend
Log Message:

Comment out debugging printf's


diffs (77 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -4448,7 +4448,7 @@ rel2bin_directappend(backend *be, sql_re
                ? add_to_rowcount_accumulator(be, s->nr)
                : s->nr;
 
-       dump_code(-1);
+       // dump_code(-1);
        return s;
 
        // snprintf(be->mvc->errstr, sizeof(be->mvc->errstr), "banana");
@@ -4459,7 +4459,7 @@ static stmt *
 rel2bin_insert(backend *be, sql_rel *rel, list *refs)
 {
        dump_code_state.mb = be->mb;
-       dump_code(0);
+       // dump_code(0);
 
        sql_exp *copyfrom = can_use_appendfrom(rel);
        if (copyfrom != NULL) {
@@ -4608,7 +4608,7 @@ rel2bin_insert(backend *be, sql_rel *rel
        if (!isNew(t) && isGlobal(t) && !isGlobalTemp(t) && 
sql_trans_add_dependency_change(be->mvc->session->tr, t->base.id, dml) != 
LOG_OK)
                return sql_error(sql, 02, SQLSTATE(HY013) MAL_MALLOC_FAIL);
 
-       dump_code(-1);
+       // dump_code(-1);
 
        if (ddl) {
                ret = ddl;
diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -833,17 +833,19 @@ directappend_claim(void *state_, size_t 
        }
 
        // debugging
-       if (front_count > 0) {
-               for (size_t j = 0; j < front_count; j++) {
-                       BUN pos = (BUN)*(oid*)Tloc(state->new_offsets, j);
-                       fprintf(stderr, "scattered offset[%zu] = " BUNFMT "\n", 
j, pos);
-               }
-       }
-       if (back_count > 0) {
-               BUN start = back_offset;
-               BUN end = start + (BUN)back_count - 1;
-               fprintf(stderr, "consecutive offsets: " BUNFMT " .. " 
BUNFMT"\n", start, end);
-       }
+       (void)front_count;
+       (void)back_count;
+       // if (front_count > 0) {
+       //      for (size_t j = 0; j < front_count; j++) {
+       //              BUN pos = (BUN)*(oid*)Tloc(state->new_offsets, j);
+       //              fprintf(stderr, "scattered offset[%zu] = " BUNFMT "\n", 
j, pos);
+       //      }
+       // }
+       // if (back_count > 0) {
+       //      BUN start = back_offset;
+       //      BUN end = start + (BUN)back_count - 1;
+       //      fprintf(stderr, "consecutive offsets: " BUNFMT " .. " 
BUNFMT"\n", start, end);
+       // }
 
        state->offset = back_offset;
 
@@ -872,10 +874,10 @@ directappend_append_one(void *state_, si
        BUN off;
        if (idx < scattered_count) {
                off = *(oid*)Tloc(scattered_offsets, idx);
-               fprintf(stderr, "Took offset " BUNFMT " from position %zu of 
the offsets BAT\n", off, idx);
+               // fprintf(stderr, "Took offset " BUNFMT " from position %zu of 
the offsets BAT\n", off, idx);
        } else {
                off = state->offset + (idx - scattered_count);
-               fprintf(stderr, "Took offset " BUNFMT " as %zu plus base " 
BUNFMT "\n", off, idx, state->offset);
+               // fprintf(stderr, "Took offset " BUNFMT " as %zu plus base " 
BUNFMT "\n", off, idx, state->offset);
        }
 
        sql_column *c = col;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to