Changeset: a30054adfa29 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a30054adfa29
Modified Files:
        gdk/gdk_bbp.c
Branch: Jun2023
Log Message:

If a bat is not in memory, it does not have to be saved.
This also prevents a possible deadlock from happening (BBPquickdesc
waits for BBPSYNCING status flag which is set at the time dirty_bat is
called).


diffs (17 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -3288,13 +3288,6 @@ dirty_bat(bat *i, bool subcommit)
                                return b;       /* the bat is loaded, 
persistent and dirty */
                        }
                        MT_lock_unset(&b->theaplock);
-               } else if (BBP_status(*i) & BBPSWAPPED) {
-                       b = (BAT *) BBPquickdesc(*i);
-                       if (b) {
-                               if (subcommit) {
-                                       return b;       /* only the desc is 
loaded */
-                               }
-                       }
                }
        }
        return NULL;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to