Changeset: dd85fb14c37c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/dd85fb14c37c
Modified Files:
        gdk/gdk_logger.c
Branch: Dec2025
Log Message:

Redo fix for #8044.


diffs (39 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -3150,6 +3150,8 @@ log_constant(logger *lg, int type, const
 
        if (LOG_DISABLED(lg) || !nr) {
                /* logging is switched off */
+               if (!lg->inmemory && lg_updated_set_bit(lg, id, 0) != 
GDK_SUCCEED)
+                       return GDK_FAIL;
                if (nr) {
                        log_lock(lg);
                        ok = la_bat_update_count(lg, id, offset + cnt, lg->tid);
@@ -3256,6 +3258,8 @@ internal_log_bat(logger *lg, BAT *b, log
 
        if (LOG_DISABLED(lg) || !nr) {
                /* logging is switched off */
+               if (!lg->inmemory && lg_updated_set_bit(lg, id, 0) != 
GDK_SUCCEED)
+                       return GDK_FAIL;
                if (nr)
                        return la_bat_update_count(lg, id, offset + cnt, 
lg->tid);
                return GDK_SUCCEED;
@@ -3480,6 +3484,8 @@ log_delta(logger *lg, BAT *uid, BAT *uva
 
        if (LOG_DISABLED(lg)) {
                /* logging is switched off */
+               if (!lg->inmemory && lg_updated_set_bit(lg, id, 0) != 
GDK_SUCCEED)
+                       return GDK_FAIL;
                log_unlock(lg);
                return GDK_SUCCEED;
        }
@@ -3816,7 +3822,7 @@ log_del_bat(logger *lg, log_bid bid)
        }
 
        assert(lg->catalog_lid->hseqbase == 0);
-       if (lg_updated_set_bit(lg, 0, p) != GDK_SUCCEED)
+       if (!lg->inmemory && lg_updated_set_bit(lg, 0, p) != GDK_SUCCEED)
                return GDK_FAIL;
        return BUNreplace(lg->catalog_lid, p, &lid, false);
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to