Update of /cvsroot/monetdb/pathfinder/compiler
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3214/compiler

Modified Files:
      Tag: XQuery_0-16
        compile.c 
Log Message:
- changed XRPC to reuse MAPI clients instead of forking a pthread
  for handling each individual request.

  code may not be fully working yet -- more tomorrow
  check-in to hand over to Jennie.
  


Index: compile.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/compile.c,v
retrieving revision 1.96.2.2
retrieving revision 1.96.2.3
diff -u -d -r1.96.2.2 -r1.96.2.3
--- compile.c   29 Jan 2007 15:26:30 -0000      1.96.2.2
+++ compile.c   15 Feb 2007 01:46:11 -0000      1.96.2.3
@@ -194,7 +194,17 @@
     urlcache_t *cache = urlcache;
     xmlParserInputBufferPtr  buf;
     char *ret, url[1024];  
-    strncpy(url, uri, 1024);
+
+    /* support for the xrpc://x.y.z/doc.xml URI naming scheme (maps to 
http://x.y.z/xrpc/doc.xml) */
+    if (strncmp(uri, "xrpc://", 7) == 0) {
+        char *p = strchr(uri+7, '/');
+        if (p) *p = '0';
+        snprintf(url, 1024, "http://%s/xrpc/%s";, uri+7, p?(p+1):"");
+        if (p) *p = '/';
+    } else {
+        strncpy(url, uri, 1024);
+    }
+
     if (keep) {
         int len = strlen(url);
        /* 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to