Update of /cvsroot/monetdb/sql/src/storage/bpm
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14599/src/storage/bpm

Modified Files:
      Tag: May2009
        bpm_storage.mx 
Log Message:
fix for the lost update bug.

The update got lost because the logger_restart saved the current
bat (with the update) but also the udate bat (old version). Many
small problems, but most important is that BATins on a Bound to be key
bat doesn't replace the values for the last but keeps the current values.
We now simpl forget about the update bat and only keep a single persistent 
bat, ie sql now also uses the log_delta, once created for xquery. 


U bpm_storage.mx
Index: bpm_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bpm/bpm_storage.mx,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -d -r1.23 -r1.23.2.1
--- bpm_storage.mx      31 Mar 2009 10:45:18 -0000      1.23
+++ bpm_storage.mx      24 May 2009 09:35:10 -0000      1.23.2.1
@@ -109,10 +109,8 @@
                BATseqbase(i, nr * BPM_SPLIT);
        }*/
        bat = p->parts+nr;
-       if (!bat->uname) 
-               bat->uname = sql_message("U_%s_%d", p->name);
        if (!bat->name) 
-               bat->name = bat->uname+2;
+               bat->name = sql_message("%s_%d", p->name);
        create_delta( bat, b, i, u);
        p -> nr++;
        return nr;
@@ -468,15 +466,12 @@
        nr = *(int*)Tloc(part_nr, r);
 
        for(i = 0; i<nr; i++) {
-               char *uname = sql_message("U_%s_%d", p->name, i);
-               char *name = uname + 2;
+               char *name = sql_message("%s_%d", p->name, i);
                int bid = logger_find_bat(bat_logger, name);
-               int ubid = logger_find_bat(bat_logger, uname);
 
                use_part(p);
                p->parts[i].name = name;
-               p->parts[i].uname = uname;
-               load_delta( &p->parts[i], bid, ubid, p->type);
+               load_delta( &p->parts[i], bid, p->type);
                p -> nr++;
        }
        p->created = p->nr;


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to