Changeset: 8cb6d210be30 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8cb6d210be30
Modified Files:
sql/storage/store.c
Branch: Dec2023
Log Message:
the active list has sql_trans objects not sql_sessions.
diffs (18 lines):
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -57,10 +57,10 @@ ulng
store_oldest(sqlstore *store, sql_trans *tr)
{
if (tr && tr->ts == (ulng) ATOMIC_GET(&store->oldest)) {
- sql_session *s = store->active->h->data;
- if (s->tr == tr && store->active->h->next) {
- s = store->active->h->next->data;
- return s->tr->ts;
+ sql_trans *otr = store->active->h->data;
+ if (otr == tr && store->active->h->next) {
+ otr = store->active->h->next->data;
+ return otr->ts;
}
}
return (ulng) ATOMIC_GET(&store->oldest);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]