Changeset: 7e1968ff0b77 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7e1968ff0b77
Modified Files:
        sql/storage/bat/bat_storage.c
Branch: Jun2023
Log Message:

fix issue with savepoints and truncate/delete all


diffs (13 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
@@ -4282,6 +4282,9 @@ commit_update_del( sql_trans *tr, sql_ch
        } else if (ok == LOG_OK && tr->parent) {/* cleanup older save points */
                merge_segments(dbat, tr, change, commit_ts, oldest);
                ATOMIC_PTR_SET(&t->data, savepoint_commit_storage(dbat, 
commit_ts));
+               storage *s = change->data;
+               if (s->cs.ts == tr->tid)
+                       s->cs.ts = commit_ts;
        }
        unlock_table(tr->store, t->base.id);
        return ok;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to