Update of /cvsroot/monetdb/sql/src/storage/bat
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30082/src/storage/bat

Modified Files:
        bat_storage.mx 
Log Message:
BATmmap BATmadvice have an extra agrument


U bat_storage.mx
Index: bat_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bat/bat_storage.mx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- bat_storage.mx      25 Mar 2008 12:55:24 -0000      1.13
+++ bat_storage.mx      14 May 2008 20:03:20 -0000      1.14
@@ -481,7 +481,7 @@
                if (BATcount(b) > 1000) 
                        BATmode(b, PERSISTENT);
                if (BATcount(b) > (size_t) REMAP_PAGE_MAXSIZE)
-                       BATmmap(b, STORE_MMAP, STORE_MMAP, STORE_MMAP);
+                       BATmmap(b, STORE_MMAP, STORE_MMAP, STORE_MMAP, 
STORE_MMAP);
                ok = log_bat_persists(bat_logger, b, bat->name);
        }
        *cnt = BATcount(b);
@@ -594,7 +594,7 @@
                        if (BATcount(b) > 1000) 
                                BATmode(b, PERSISTENT);
                        if (BATcount(b) > (size_t) REMAP_PAGE_MAXSIZE)
-                               BATmmap(b, STORE_MMAP, STORE_MMAP, STORE_MMAP);
+                               BATmmap(b, STORE_MMAP, STORE_MMAP, STORE_MMAP, 
STORE_MMAP);
                        ok = log_bat_persists(bat_logger, b, bat->dname);
                }
                t->cnt -= BATcount(b);
@@ -893,7 +893,7 @@
                                if (tr->parent == gtrans) {
                                        BATmode(ins, PERSISTENT);
                                        if (BATcount(ins) > (size_t) 
REMAP_PAGE_MAXSIZE)
-                                                       BATmmap(ins, 
STORE_MMAP, STORE_MMAP, STORE_MMAP);
+                                                       BATmmap(ins, 
STORE_MMAP, STORE_MMAP, STORE_MMAP, STORE_MMAP);
                                        logger_add_bat(bat_logger, ins, 
obat->name);
                                        log_bat_persists(bat_logger, ins, 
obat->name);
                                }
@@ -903,7 +903,7 @@
                                cur = swpbat;
                        } else {
                                if (BATcount(cur)+BATcount(ins) > (size_t) 
REMAP_PAGE_MAXSIZE) { /* try to use mmap() */
-                                               BATmmap(cur, STORE_MMAP, 
STORE_MMAP, STORE_MMAP);
+                                               BATmmap(cur, STORE_MMAP, 
STORE_MMAP, STORE_MMAP, STORE_MMAP);
                                }
                                BATappend(cur,ins,TRUE);
                                bat_clear(ins);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to