Update of /cvsroot/monetdb/pathfinder/compiler/mil
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19168/compiler/mil

Modified Files:
      Tag: Aug2009_NFI
        milgen.brg 
Log Message:
instead of passing the low-level mode string ("use-cache-repeatable")
in the option pf:session-mode, we just have a boolean optional option 
pf:session-nocache (default is "false") to ask for a session that uses 
cached results, but can not add new cached results to the session (and 
thus multiple such concurrent queries are allowed to run in parallel)



U milgen.brg
Index: milgen.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mil/milgen.brg,v
retrieving revision 1.221.2.1.2.4
retrieving revision 1.221.2.1.2.5
diff -u -d -r1.221.2.1.2.4 -r1.221.2.1.2.5
--- milgen.brg  16 Oct 2009 08:10:21 -0000      1.221.2.1.2.4
+++ milgen.brg  16 Oct 2009 08:49:39 -0000      1.221.2.1.2.5
@@ -11031,9 +11031,9 @@
 {
     PFmil_t   *bodymilprog;
     PFarray_t *opt;
+    bool       nocache = 0;
     long long  timeout = 0;
-    char      *qid     = "",
-              *mode    = "none";
+    char      *qid     = "";
 
     /* Retrieve session information from the global option list. */
     opt = PFenv_lookup (PFoptions, PFqname(PFns_lib, "session-id"));
@@ -11052,11 +11052,12 @@
             PFlog ("Multiple session timeouts -- Choosing \"%s\".",
                    *((char **) PFarray_at (opt, 0)));
     }
-    opt = PFenv_lookup (PFoptions, PFqname(PFns_lib, "session-mode"));
+    opt = PFenv_lookup (PFoptions, PFqname(PFns_lib, "session-nocache"));
     if (opt) {
-        mode = *((char **) PFarray_at (opt, 0));
+        char *mode = *((char **) PFarray_at (opt, 0));
         if (PFarray_last(opt) > 1)
             PFlog ("Multiple session modes -- Choosing \"%s\".", mode);
+        nocache = strcmp(mode, "true") == 0 || strcmp(mode, "yes") == 0;
     }
 
     assert (n);
@@ -11182,7 +11183,7 @@
                    assgn (var (PF_MIL_VAR_XRPC_HDL), lit_int(0)),
                    assgn (var (PF_MIL_VAR_XRPC_SEQNR), lit_lng(0)),
                    assgn (var (PF_MIL_VAR_XRPC_TIMEOUT), lit_lng(timeout)),
-                   assgn (var (PF_MIL_VAR_XRPC_MODE), lit_str (mode)),
+                   assgn (var (PF_MIL_VAR_XRPC_MODE), lit_str 
(qid?nocache?"use-cache-repeatable":"cache-repeatable":"none")),
                    assgn (var (PF_MIL_VAR_XRPC_MODULE), lit_str("")),
                    assgn (var (PF_MIL_VAR_XRPC_METHOD), lit_str("")),
                    assgn (var (PF_MIL_VAR_XRPC_COORD), lit_str("")),


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to