Update of /cvsroot/monetdb/MonetDB5/src/modules/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10580/modules/mal

Modified Files:
        recycle.mx 
Log Message:
Added a time and size based retainment policy infrastructure.
Covered by the examples recycle{02,03}


Index: recycle.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/recycle.mx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- recycle.mx  8 Mar 2008 11:57:58 -0000       1.4
+++ recycle.mx  8 Mar 2008 12:43:37 -0000       1.5
@@ -157,6 +157,10 @@
 {
        (void) mb;
        retainPolicy = * (int*) getArgReference(stk, p,1);
+       if( retainPolicy == 2 && p->argc >= 2)
+               retainTime = * (int*) getArgReference(stk, p,2);
+       if( retainPolicy == 3 && p->argc >= 2)
+               retainSize = * (size_t*) getArgReference(stk, p,2);
        (void)retainPolicy;
        return MAL_SUCCEED;
 }


-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to