Ignore:
Timestamp:
Aug 7, 2017, 2:56:24 PM (7 years ago)
Author:
djay
Message:

Update the source code for HPC support. Automatically adding nested outputs for the HPC support (should this be available for every support?). Add capability to store the metadata in the Collection DataBase?. Addition of the zcfg2sql to import any existing ZCFG file into the Collection DB. Add the support to invoke a callback (for history purpose) in case a [callback] section contains at least one parameter defined (url). Add support to convert maps and map to JSON (for callback use only by now). Fix some memory leaks (some are still there).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/caching.c

    r822 r839  
    158158 */
    159159int readCurrentInput(maps** m,maps** in,int* index,HINTERNET* hInternet,map** error){
     160 
    160161  map* tmp1;
    161162  char sindex[5];
     
    212213    sprintf(sindex,"%d",*index+1);
    213214    if((tmp1=getMap(content->content,xname))!=NULL && tmap!=NULL && strcasecmp(tmap->value,sindex)==0){
    214      
    215       if(getMap(content->content,icname)==NULL){
     215
     216      if(getMap(content->content,icname)==NULL){       
    216217        fcontent=(char*)malloc((hInternet->ihandle[*index].nDataLen+1)*sizeof(char));
    217218        if(fcontent == NULL){
     
    266267          char* md5str=NULL;
    267268          if((tmp2=getMap(content->content,bname))!=NULL){
    268             dumpMap(tmp2);
    269269            char *tmpStr=(char*)malloc((strlen(tmp1->value)+strlen(tmp2->value)+1)*sizeof(char));
    270270            sprintf(tmpStr,"%s%s",tmp1->value,tmp2->value);
    271271            if((tmp2=getMap(content->content,"headers"))!=NULL){
    272272              char *tmpStr2=zStrdup(tmpStr);
     273              free(tmpStr);
    273274              tmpStr=(char*)malloc((strlen(tmpStr2)+strlen(tmp2->value)+1)*sizeof(char));
    274275              sprintf(tmpStr,"%s%s",tmpStr2,tmp2->value);
     
    293294        free(mimeType);
    294295        free(request);
    295         *index++;
    296        
     296        (*index)++;
    297297      }
    298298    }
     
    361361    free(oreq);
    362362  }else{
    363     setMapArray(oreq->content,"value",hInternet->nb-1,url);
     363    setMapArray(oreq->content,"value",hInternet->nb,url);
    364364  }
    365365}
     
    444444      addToMap(*content,"cache_file",fname);
    445445      free(fname);
     446      free(md5str);
    446447    }
    447448  }
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png