Changeset 7961


Ignore:
Timestamp:
08/30/06 13:03:36 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7959 r7961  
    3131     - removed nail
    3232     - improved logging
     33
     34   * datacenter/macros/filldotrun.C:
     35     - enhanced return-values
     36
     37   * datacenter/macros/insertdataset.C:
     38     - fixed return-values in case of error
     39
     40   * datacenter/macros/insertdataset.C,
     41     datacenter/scripts/insertdatasets:
     42     - implemented return value for 'exists already in db'
    3343
    3444
  • trunk/MagicSoft/Mars/datacenter/macros/filldotrun.C

    r7871 r7961  
    654654        cout << " <" << n << "> " << (dummy?"DUMMY":"") << endl;
    655655
    656         return n<0 ? 0 : 1;
     656        return n<0 ? 2 : 1;
    657657    }
    658658
     
    669669
    670670        if (n<0)
    671             return 0;
     671            return 2;
    672672    }
    673673
  • trunk/MagicSoft/Mars/datacenter/macros/insertdataset.C

    r7460 r7961  
    150150        cout << "Error - could not get sourcename from DB -> " << flush;
    151151        cout << "maybe you have the wrong sourcename in your datasetfile" << endl;
    152         return 0;
     152        return 2;
    153153    }
    154154
     
    172172        {
    173173            cout << "Error - could not insert dataset" << endl;
    174             return 0;
     174            return 2;
    175175        }
    176176        delete res;
     
    185185        {
    186186            cout << "Error - could not insert dataset" << endl;
    187             return 0;
     187            return 2;
    188188        }
    189189        delete res;
     
    192192    {
    193193        cout << number << " already exists... " << endl;
    194         return 0;
     194        return 3;
    195195    }
    196196
  • trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets

    r7954 r7961  
    102102           printprocesslog "INFO dataset $no2 successfully inserted"
    103103           ;;
     104      3)   echo " check0=$check0 -> everything ok " >> $scriptlog 2>&1
     105           printprocesslog "INFO dataset $no2 exists already"
     106           ;;
    104107      0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
    105108           printprocesslog "WARN connection to DB failed"
Note: See TracChangeset for help on using the changeset viewer.