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

revert accidental change


diffs (25 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
@@ -2969,19 +2969,18 @@ claim_segment(sql_trans *tr, sql_table *
        assert(s->segs);
        ulng oldest = store_oldest(tr->store);
        BUN slot = 0;
-       int reused = 0, enabled = 0;
+       int reused = 0;
 
        /* naive vacuum approach, iterator through segments, check for large 
enough deleted segments
         * or create new segment at the end */
        /* when claiming an segment use atomic CAS */
-       if (enabled)
        for (segment *seg = s->segs->h, *p = NULL; seg && ok == LOG_OK; p = 
seg, seg = seg->next) {
                if (seg->deleted && seg->ts < oldest && (seg->end-seg->start) 
>= cnt) { /* re-use old deleted or rolledback append */
 
                        if ((seg->end - seg->start) >= cnt) {
 
                                /* if previous is claimed before we could 
simply adjust the end/start */
-                               if (enabled && p && p->ts == tr->tid && 
!p->deleted) {
+                               if (p && p->ts == tr->tid && !p->deleted) {
                                        slot = p->end;
                                        p->end += cnt;
                                        seg->start += cnt;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to