Ignore:
Timestamp:
Dec 12, 2017, 4:09:47 PM (6 years ago)
Author:
djay
Message:

Add status_code key to the lenv section to support returning a specific HTTP error code from the service code. Fix callback invocation to support inputs arrays at step 1 and 2. Fix issue with cpu usage. Fix issue with mapserver publication when an input is optional. Fix callback invocation at step 7 in case the service has failed on the HPC side.

File:
1 edited

Legend:

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

    r854 r860  
    121121int _init_sql(maps* conf,const char* key){
    122122  char* sqlInitString=_createInitString(conf,key);
     123#ifdef SQL_DEBUG
    123124  fprintf(stderr,"Try to connect to: %s %s !\n",key,sqlInitString);
    124125  fflush(stderr); 
     126#endif
    125127  if(strncmp(sqlInitString,"-1",2)==0)
    126128    return -1;
    127   fprintf(stderr,"Try to connect to: %s !\n",key);
    128   fflush(stderr); 
    129129  OGRSFDriver *poDriver = NULL;
    130130  OGRRegisterAll();
     
    165165#endif
    166166  if( zoo_DS[zoo_ds_nb] == NULL ){
    167 #ifdef DEBUG
     167#ifdef SQL_DEBUG
    168168    fprintf(stderr,"sqlInitString: %s FAILED !\n",sqlInitString);
    169169    fflush(stderr);
     
    174174    return -2;
    175175  }
    176 #ifdef DEBUG
     176#ifdef SQL_DEBUG
    177177  fprintf(stderr,"sqlInitString: %s SUCEED !\n",sqlInitString);
    178178  fflush(stderr);
    179179#endif
    180   fprintf(stderr,"sqlInitString: %s SUCEED %d !\n",sqlInitString,zoo_ds_nb);
    181   fflush(stderr); 
    182180  free(sqlInitString);
    183181  zoo_ds_nb++;
     
    234232    return NULL;
    235233  OGRLayer *res=NULL;
    236 #ifdef DEBUG
     234#ifdef SQL_DEBUG
    237235  fprintf(stderr,"************************* %s %s %d\n\n",sqlQuery,__FILE__,__LINE__);
    238236  fflush(stderr);
     
    381379  char *sqlQuery=(char*)malloc((strlen(schema->value)+strlen(msg->value)+strlen(p->value)+strlen(sid->value)+64+1)*sizeof(char));
    382380  sprintf(sqlQuery,"UPDATE %s.services set status=$$%s$$,message=$$%s$$ where uuid=$$%s$$;",schema->value,p->value,msg->value,sid->value);
    383   if(zoo_ds_nb==0){
     381  if( zoo_ds_nb==
     382#ifdef META_DB
     383      1
     384#else
     385      0
     386#endif     
     387     ){
    384388    init_sql(conf);
    385389    zoo_ds_nb++;
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