Changeset: 9df7201bcf40 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9df7201bcf40
Modified Files:
        gdk/gdk_bat.c
Branch: Jul2021
Log Message:

Avoid STORE_PRIV heap mode.


diffs (23 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -2187,7 +2187,8 @@ HEAPchangeaccess(Heap *hp, int dstmode, 
        if (dstmode == BAT_WRITE) {
                if (hp->storage != STORE_PRIV)
                        hp->dirty = true;       /* exception c does not make it 
dirty */
-               return STORE_PRIV;      /* 4=>6,5=>7,c=>6 persistent BAT_WRITE 
needs STORE_PRIV */
+//             return STORE_PRIV;      /* 4=>6,5=>7,c=>6 persistent BAT_WRITE 
needs STORE_PRIV */
+               return STORE_MMAP;
        }
        if (hp->storage == STORE_MMAP) {        /* 6=>4 */
                hp->dirty = true;
@@ -2215,7 +2216,8 @@ HEAPcommitpersistence(Heap *hp, bool wri
 
        if (hp->newstorage == STORE_MMAP)
                hp->dirty = true;       /* 2=>6 */
-       return STORE_PRIV;      /* 1=>5,2=>6,3=>7,a=>c,b=>6 states */
+//     return STORE_PRIV;      /* 1=>5,2=>6,3=>7,a=>c,b=>6 states */
+       return STORE_MMAP;
 }
 
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to