Changeset: 9e9643311f4a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9e9643311f4a
Modified Files:
        sql/storage/bat/bat_storage.c
        sql/storage/bat/bat_storage.h
Branch: Jul2021
Log Message:

small cleanup


diffs (55 lines):

diff --git a/sql/storage/bat/bat_storage.c b/sql/storage/bat/bat_storage.c
--- a/sql/storage/bat/bat_storage.c
+++ b/sql/storage/bat/bat_storage.c
@@ -337,7 +337,7 @@ temp_dup_cs(column_storage *cs, ulng tid
        bat_destroy(b);
        cs->uibid = e_bat(TYPE_oid);
        cs->uvbid = e_bat(type);
-       cs->ucnt = cs->cnt = 0;
+       cs->ucnt = 0;
        cs->cleared = 0;
        cs->ts = tid;
        cs->refcnt = 1;
@@ -1648,7 +1648,6 @@ new_persistent_delta( sql_delta *bat)
 static void
 create_delta( sql_delta *d, BAT *b)
 {
-       d->cs.cnt = BATcount(b);
        bat_set_access(b, BAT_READ);
        d->cs.bid = temp_create(b);
        d->cs.uibid = d->cs.uvbid = 0;
@@ -1719,7 +1718,6 @@ create_col(sql_trans *tr, sql_column *c)
                                if(bat->cs.bid == BID_NIL)
                                        ok = LOG_ERR;
                        }
-                       bat->cs.cnt = d->cs.cnt;
                        if (d->cs.uibid) {
                                bat->cs.uibid = e_bat(TYPE_oid);
                                if (bat->cs.uibid == BID_NIL)
@@ -1838,7 +1836,6 @@ create_idx(sql_trans *tr, sql_idx *ni)
                        if(bat->cs.bid == BID_NIL)
                                ok = LOG_ERR;
                }
-               bat->cs.cnt = d->cs.cnt;
                bat->cs.ucnt = 0;
                if (!isNew(c))
                        bat->cs.alter = 1;
@@ -2348,7 +2345,6 @@ clear_storage(sql_trans *tr, storage *s)
 
        clear_cs(tr, &s->cs);
        s->cs.cleared = 1;
-       s->cs.cnt = 0;
        if (s->segs)
                destroy_segments(s->segs);
        s->segs = new_segments(tr, 0);
diff --git a/sql/storage/bat/bat_storage.h b/sql/storage/bat/bat_storage.h
--- a/sql/storage/bat/bat_storage.h
+++ b/sql/storage/bat/bat_storage.h
@@ -19,7 +19,6 @@ typedef struct column_storage {
        int uvbid;              /* bat with values of updates */
        bool cleared;
        bool alter;             /* set when the delta is created for an alter 
statement */
-       size_t cnt;             /* number of tuples (excluding? the deletes) */
        size_t ucnt;    /* number of updates */
        ulng ts;                /* version timestamp */
 } column_storage;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to