Changeset 16616
- Timestamp:
- Feb 22, 2008, 11:49:29 AM (18 years ago)
- Location:
- trunk/ippdb
- Files:
-
- 7 edited
-
src/ippdb.c (modified) (22 diffs)
-
src/ippdb.h (modified) (6 diffs)
-
tests/alloc.c (modified) (3 diffs)
-
tests/insert.c (modified) (1 diff)
-
tests/insertobject.c (modified) (2 diffs)
-
tests/metadatafromobject.c (modified) (3 diffs)
-
tests/objectfrommetadata.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/src/ippdb.c
r16587 r16616 24789 24789 static void pstampDataStoreRowFree(pstampDataStoreRow *object); 24790 24790 24791 pstampDataStoreRow *pstampDataStoreRowAlloc(psS64 ds_id, const char * uri, const char *lastFileset, const char *state)24791 pstampDataStoreRow *pstampDataStoreRowAlloc(psS64 ds_id, const char *state, const char *lastFileset, const char *outProduct, const char *uri) 24792 24792 { 24793 24793 pstampDataStoreRow *_object; … … 24797 24797 24798 24798 _object->ds_id = ds_id; 24799 _object->state = psStringCopy(state); 24800 _object->lastFileset = psStringCopy(lastFileset); 24801 _object->outProduct = psStringCopy(outProduct); 24799 24802 _object->uri = psStringCopy(uri); 24800 _object->lastFileset = psStringCopy(lastFileset);24801 _object->state = psStringCopy(state);24802 24803 24803 24804 return _object; … … 24806 24807 static void pstampDataStoreRowFree(pstampDataStoreRow *object) 24807 24808 { 24809 psFree(object->state); 24810 psFree(object->lastFileset); 24811 psFree(object->outProduct); 24808 24812 psFree(object->uri); 24809 psFree(object->lastFileset);24810 psFree(object->state);24811 24813 } 24812 24814 … … 24819 24821 return false; 24820 24822 } 24823 if (!psMetadataAdd(md, PS_LIST_TAIL, "state", PS_DATA_STRING, NULL, "64")) { 24824 psError(PS_ERR_UNKNOWN, false, "failed to add item state"); 24825 psFree(md); 24826 return false; 24827 } 24828 if (!psMetadataAdd(md, PS_LIST_TAIL, "lastFileset", PS_DATA_STRING, NULL, "64")) { 24829 psError(PS_ERR_UNKNOWN, false, "failed to add item lastFileset"); 24830 psFree(md); 24831 return false; 24832 } 24833 if (!psMetadataAdd(md, PS_LIST_TAIL, "outProduct", PS_DATA_STRING, "UNIQUE", "64")) { 24834 psError(PS_ERR_UNKNOWN, false, "failed to add item outProduct"); 24835 psFree(md); 24836 return false; 24837 } 24821 24838 if (!psMetadataAdd(md, PS_LIST_TAIL, "uri", PS_DATA_STRING, NULL, "255")) { 24822 24839 psError(PS_ERR_UNKNOWN, false, "failed to add item uri"); … … 24824 24841 return false; 24825 24842 } 24826 if (!psMetadataAdd(md, PS_LIST_TAIL, "lastFileset", PS_DATA_STRING, NULL, "64")) {24827 psError(PS_ERR_UNKNOWN, false, "failed to add item lastFileset");24828 psFree(md);24829 return false;24830 }24831 if (!psMetadataAdd(md, PS_LIST_TAIL, "state", PS_DATA_STRING, NULL, "64")) {24832 psError(PS_ERR_UNKNOWN, false, "failed to add item state");24833 psFree(md);24834 return false;24835 }24836 24843 24837 24844 bool status = psDBCreateTable(dbh, PSTAMPDATASTORE_TABLE_NAME, md); … … 24847 24854 } 24848 24855 24849 bool pstampDataStoreInsert(psDB * dbh, psS64 ds_id, const char * uri, const char *lastFileset, const char *state)24856 bool pstampDataStoreInsert(psDB * dbh, psS64 ds_id, const char *state, const char *lastFileset, const char *outProduct, const char *uri) 24850 24857 { 24851 24858 psMetadata *md = psMetadataAlloc(); … … 24855 24862 return false; 24856 24863 } 24864 if (!psMetadataAdd(md, PS_LIST_TAIL, "state", PS_DATA_STRING, NULL, state)) { 24865 psError(PS_ERR_UNKNOWN, false, "failed to add item state"); 24866 psFree(md); 24867 return false; 24868 } 24869 if (!psMetadataAdd(md, PS_LIST_TAIL, "lastFileset", PS_DATA_STRING, NULL, lastFileset)) { 24870 psError(PS_ERR_UNKNOWN, false, "failed to add item lastFileset"); 24871 psFree(md); 24872 return false; 24873 } 24874 if (!psMetadataAdd(md, PS_LIST_TAIL, "outProduct", PS_DATA_STRING, NULL, outProduct)) { 24875 psError(PS_ERR_UNKNOWN, false, "failed to add item outProduct"); 24876 psFree(md); 24877 return false; 24878 } 24857 24879 if (!psMetadataAdd(md, PS_LIST_TAIL, "uri", PS_DATA_STRING, NULL, uri)) { 24858 24880 psError(PS_ERR_UNKNOWN, false, "failed to add item uri"); 24859 psFree(md);24860 return false;24861 }24862 if (!psMetadataAdd(md, PS_LIST_TAIL, "lastFileset", PS_DATA_STRING, NULL, lastFileset)) {24863 psError(PS_ERR_UNKNOWN, false, "failed to add item lastFileset");24864 psFree(md);24865 return false;24866 }24867 if (!psMetadataAdd(md, PS_LIST_TAIL, "state", PS_DATA_STRING, NULL, state)) {24868 psError(PS_ERR_UNKNOWN, false, "failed to add item state");24869 24881 psFree(md); 24870 24882 return false; … … 24893 24905 bool pstampDataStoreInsertObject(psDB *dbh, pstampDataStoreRow *object) 24894 24906 { 24895 return pstampDataStoreInsert(dbh, object->ds_id, object-> uri, object->lastFileset, object->state);24907 return pstampDataStoreInsert(dbh, object->ds_id, object->state, object->lastFileset, object->outProduct, object->uri); 24896 24908 } 24897 24909 … … 24971 24983 return false; 24972 24984 } 24985 if (!psMetadataAdd(md, PS_LIST_TAIL, "state", PS_DATA_STRING, NULL, object->state)) { 24986 psError(PS_ERR_UNKNOWN, false, "failed to add item state"); 24987 psFree(md); 24988 return false; 24989 } 24990 if (!psMetadataAdd(md, PS_LIST_TAIL, "lastFileset", PS_DATA_STRING, NULL, object->lastFileset)) { 24991 psError(PS_ERR_UNKNOWN, false, "failed to add item lastFileset"); 24992 psFree(md); 24993 return false; 24994 } 24995 if (!psMetadataAdd(md, PS_LIST_TAIL, "outProduct", PS_DATA_STRING, NULL, object->outProduct)) { 24996 psError(PS_ERR_UNKNOWN, false, "failed to add item outProduct"); 24997 psFree(md); 24998 return false; 24999 } 24973 25000 if (!psMetadataAdd(md, PS_LIST_TAIL, "uri", PS_DATA_STRING, NULL, object->uri)) { 24974 25001 psError(PS_ERR_UNKNOWN, false, "failed to add item uri"); … … 24976 25003 return false; 24977 25004 } 24978 if (!psMetadataAdd(md, PS_LIST_TAIL, "lastFileset", PS_DATA_STRING, NULL, object->lastFileset)) {24979 psError(PS_ERR_UNKNOWN, false, "failed to add item lastFileset");24980 psFree(md);24981 return false;24982 }24983 if (!psMetadataAdd(md, PS_LIST_TAIL, "state", PS_DATA_STRING, NULL, object->state)) {24984 psError(PS_ERR_UNKNOWN, false, "failed to add item state");24985 psFree(md);24986 return false;24987 }24988 25005 24989 25006 … … 25000 25017 return false; 25001 25018 } 25019 char* state = psMetadataLookupPtr(&status, md, "state"); 25020 if (!status) { 25021 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item state"); 25022 return false; 25023 } 25024 char* lastFileset = psMetadataLookupPtr(&status, md, "lastFileset"); 25025 if (!status) { 25026 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item lastFileset"); 25027 return false; 25028 } 25029 char* outProduct = psMetadataLookupPtr(&status, md, "outProduct"); 25030 if (!status) { 25031 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item outProduct"); 25032 return false; 25033 } 25002 25034 char* uri = psMetadataLookupPtr(&status, md, "uri"); 25003 25035 if (!status) { … … 25005 25037 return false; 25006 25038 } 25007 char* lastFileset = psMetadataLookupPtr(&status, md, "lastFileset"); 25008 if (!status) { 25009 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item lastFileset"); 25010 return false; 25011 } 25012 char* state = psMetadataLookupPtr(&status, md, "state"); 25013 if (!status) { 25014 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item state"); 25015 return false; 25016 } 25017 25018 return pstampDataStoreRowAlloc(ds_id, uri, lastFileset, state); 25039 25040 return pstampDataStoreRowAlloc(ds_id, state, lastFileset, outProduct, uri); 25019 25041 } 25020 25042 psArray *pstampDataStoreSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit) … … 25134 25156 static void pstampRequestRowFree(pstampRequestRow *object); 25135 25157 25136 pstampRequestRow *pstampRequestRowAlloc(psS64 req_id, psS64 ds_id, const char *state, const char * uri)25158 pstampRequestRow *pstampRequestRowAlloc(psS64 req_id, psS64 ds_id, const char *state, const char *outFileset, const char *uri) 25137 25159 { 25138 25160 pstampRequestRow *_object; … … 25144 25166 _object->ds_id = ds_id; 25145 25167 _object->state = psStringCopy(state); 25168 _object->outFileset = psStringCopy(outFileset); 25146 25169 _object->uri = psStringCopy(uri); 25147 25170 … … 25152 25175 { 25153 25176 psFree(object->state); 25177 psFree(object->outFileset); 25154 25178 psFree(object->uri); 25155 25179 } … … 25173 25197 return false; 25174 25198 } 25199 if (!psMetadataAdd(md, PS_LIST_TAIL, "outFileset", PS_DATA_STRING, "UNIQUE", "64")) { 25200 psError(PS_ERR_UNKNOWN, false, "failed to add item outFileset"); 25201 psFree(md); 25202 return false; 25203 } 25175 25204 if (!psMetadataAdd(md, PS_LIST_TAIL, "uri", PS_DATA_STRING, NULL, "255")) { 25176 25205 psError(PS_ERR_UNKNOWN, false, "failed to add item uri"); … … 25191 25220 } 25192 25221 25193 bool pstampRequestInsert(psDB * dbh, psS64 req_id, psS64 ds_id, const char *state, const char * uri)25222 bool pstampRequestInsert(psDB * dbh, psS64 req_id, psS64 ds_id, const char *state, const char *outFileset, const char *uri) 25194 25223 { 25195 25224 psMetadata *md = psMetadataAlloc(); … … 25206 25235 if (!psMetadataAdd(md, PS_LIST_TAIL, "state", PS_DATA_STRING, NULL, state)) { 25207 25236 psError(PS_ERR_UNKNOWN, false, "failed to add item state"); 25237 psFree(md); 25238 return false; 25239 } 25240 if (!psMetadataAdd(md, PS_LIST_TAIL, "outFileset", PS_DATA_STRING, NULL, outFileset)) { 25241 psError(PS_ERR_UNKNOWN, false, "failed to add item outFileset"); 25208 25242 psFree(md); 25209 25243 return false; … … 25237 25271 bool pstampRequestInsertObject(psDB *dbh, pstampRequestRow *object) 25238 25272 { 25239 return pstampRequestInsert(dbh, object->req_id, object->ds_id, object->state, object-> uri);25273 return pstampRequestInsert(dbh, object->req_id, object->ds_id, object->state, object->outFileset, object->uri); 25240 25274 } 25241 25275 … … 25325 25359 return false; 25326 25360 } 25361 if (!psMetadataAdd(md, PS_LIST_TAIL, "outFileset", PS_DATA_STRING, NULL, object->outFileset)) { 25362 psError(PS_ERR_UNKNOWN, false, "failed to add item outFileset"); 25363 psFree(md); 25364 return false; 25365 } 25327 25366 if (!psMetadataAdd(md, PS_LIST_TAIL, "uri", PS_DATA_STRING, NULL, object->uri)) { 25328 25367 psError(PS_ERR_UNKNOWN, false, "failed to add item uri"); … … 25354 25393 return false; 25355 25394 } 25395 char* outFileset = psMetadataLookupPtr(&status, md, "outFileset"); 25396 if (!status) { 25397 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item outFileset"); 25398 return false; 25399 } 25356 25400 char* uri = psMetadataLookupPtr(&status, md, "uri"); 25357 25401 if (!status) { … … 25360 25404 } 25361 25405 25362 return pstampRequestRowAlloc(req_id, ds_id, state, uri);25406 return pstampRequestRowAlloc(req_id, ds_id, state, outFileset, uri); 25363 25407 } 25364 25408 psArray *pstampRequestSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit) -
trunk/ippdb/src/ippdb.h
r16587 r16616 11364 11364 typedef struct { 11365 11365 psS64 ds_id; 11366 char *state; 11367 char *lastFileset; 11368 char *outProduct; 11366 11369 char *uri; 11367 char *lastFileset;11368 char *state;11369 11370 } pstampDataStoreRow; 11370 11371 … … 11376 11377 pstampDataStoreRow *pstampDataStoreRowAlloc( 11377 11378 psS64 ds_id, 11378 const char * uri,11379 const char *state, 11379 11380 const char *lastFileset, 11380 const char *state 11381 const char *outProduct, 11382 const char *uri 11381 11383 ); 11382 11384 … … 11409 11411 psDB *dbh, ///< Database handle 11410 11412 psS64 ds_id, 11411 const char * uri,11413 const char *state, 11412 11414 const char *lastFileset, 11413 const char *state 11415 const char *outProduct, 11416 const char *uri 11414 11417 ); 11415 11418 … … 11570 11573 psS64 ds_id; 11571 11574 char *state; 11575 char *outFileset; 11572 11576 char *uri; 11573 11577 } pstampRequestRow; … … 11582 11586 psS64 ds_id, 11583 11587 const char *state, 11588 const char *outFileset, 11584 11589 const char *uri 11585 11590 ); … … 11615 11620 psS64 ds_id, 11616 11621 const char *state, 11622 const char *outFileset, 11617 11623 const char *uri 11618 11624 ); -
trunk/ippdb/tests/alloc.c
r16587 r16616 2825 2825 pstampDataStoreRow *object; 2826 2826 2827 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string" );2827 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string", "a string" ); 2828 2828 2829 2829 if (!object) { … … 2835 2835 exit(EXIT_FAILURE); 2836 2836 } 2837 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2838 psFree(object); 2839 exit(EXIT_FAILURE); 2840 } 2841 if (strncmp(object->lastFileset, "a string", MAX_STRING_LENGTH)) { 2842 psFree(object); 2843 exit(EXIT_FAILURE); 2844 } 2845 if (strncmp(object->outProduct, "a string", MAX_STRING_LENGTH)) { 2846 psFree(object); 2847 exit(EXIT_FAILURE); 2848 } 2837 2849 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2838 2850 psFree(object); 2839 2851 exit(EXIT_FAILURE); 2840 2852 } 2841 if (strncmp(object->lastFileset, "a string", MAX_STRING_LENGTH)) { 2853 2854 psFree(object); 2855 } 2856 2857 { 2858 pstampRequestRow *object; 2859 2860 object = pstampRequestRowAlloc(-64, -64, "a string", "a string", "a string" ); 2861 2862 if (!object) { 2863 exit(EXIT_FAILURE); 2864 } 2865 2866 if (!object->req_id == -64) { 2867 psFree(object); 2868 exit(EXIT_FAILURE); 2869 } 2870 if (!object->ds_id == -64) { 2842 2871 psFree(object); 2843 2872 exit(EXIT_FAILURE); … … 2847 2876 exit(EXIT_FAILURE); 2848 2877 } 2849 2850 psFree(object); 2851 } 2852 2853 { 2854 pstampRequestRow *object; 2855 2856 object = pstampRequestRowAlloc(-64, -64, "a string", "a string" ); 2857 2858 if (!object) { 2859 exit(EXIT_FAILURE); 2860 } 2861 2862 if (!object->req_id == -64) { 2863 psFree(object); 2864 exit(EXIT_FAILURE); 2865 } 2866 if (!object->ds_id == -64) { 2867 psFree(object); 2868 exit(EXIT_FAILURE); 2869 } 2870 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2878 if (strncmp(object->outFileset, "a string", MAX_STRING_LENGTH)) { 2871 2879 psFree(object); 2872 2880 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r16587 r16616 763 763 } 764 764 765 if (!pstampDataStoreInsert(dbh, -64, "a string", "a string", "a string" )) {766 exit(EXIT_FAILURE); 767 } 768 769 psDBCleanup(dbh); 770 } 771 772 { 773 psDB *dbh; 774 775 dbh = psDBInit("localhost", "test", NULL, "test"); 776 if (!dbh) { 777 exit(EXIT_FAILURE); 778 } 779 780 if (!pstampRequestInsert(dbh, -64, -64, "a string", "a string" )) {765 if (!pstampDataStoreInsert(dbh, -64, "a string", "a string", "a string", "a string")) { 766 exit(EXIT_FAILURE); 767 } 768 769 psDBCleanup(dbh); 770 } 771 772 { 773 psDB *dbh; 774 775 dbh = psDBInit("localhost", "test", NULL, "test"); 776 if (!dbh) { 777 exit(EXIT_FAILURE); 778 } 779 780 if (!pstampRequestInsert(dbh, -64, -64, "a string", "a string", "a string")) { 781 781 exit(EXIT_FAILURE); 782 782 } -
trunk/ippdb/tests/insertobject.c
r16587 r16616 1114 1114 } 1115 1115 1116 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string" );1116 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string", "a string"); 1117 1117 if (!object) { 1118 1118 exit(EXIT_FAILURE); … … 1136 1136 } 1137 1137 1138 object = pstampRequestRowAlloc(-64, -64, "a string", "a string" );1138 object = pstampRequestRowAlloc(-64, -64, "a string", "a string", "a string"); 1139 1139 if (!object) { 1140 1140 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r16587 r16616 3142 3142 bool status; 3143 3143 3144 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string" );3144 object = pstampDataStoreRowAlloc(-64, "a string", "a string", "a string", "a string"); 3145 3145 if (!object) { 3146 3146 exit(EXIT_FAILURE); … … 3157 3157 exit(EXIT_FAILURE); 3158 3158 } 3159 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 3160 psFree(md); 3161 exit(EXIT_FAILURE); 3162 } 3163 if (strncmp(psMetadataLookupPtr(&status, md, "lastFileset"), "a string", MAX_STRING_LENGTH)) { 3164 psFree(md); 3165 exit(EXIT_FAILURE); 3166 } 3167 if (strncmp(psMetadataLookupPtr(&status, md, "outProduct"), "a string", MAX_STRING_LENGTH)) { 3168 psFree(md); 3169 exit(EXIT_FAILURE); 3170 } 3159 3171 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 3160 3172 psFree(md); 3161 3173 exit(EXIT_FAILURE); 3162 3174 } 3163 if (strncmp(psMetadataLookupPtr(&status, md, "lastFileset"), "a string", MAX_STRING_LENGTH)) { 3175 3176 psFree(md); 3177 } 3178 3179 { 3180 psMetadata *md; 3181 pstampRequestRow *object; 3182 bool status; 3183 3184 object = pstampRequestRowAlloc(-64, -64, "a string", "a string", "a string"); 3185 if (!object) { 3186 exit(EXIT_FAILURE); 3187 } 3188 3189 md = pstampRequestMetadataFromObject(object); 3190 if (!md) { 3191 exit(EXIT_FAILURE); 3192 } 3193 3194 psFree(object); 3195 3196 psFree(md); 3197 exit(EXIT_FAILURE); 3198 } 3164 3199 psFree(md); 3165 3200 exit(EXIT_FAILURE); … … 3169 3204 exit(EXIT_FAILURE); 3170 3205 } 3171 3172 psFree(md); 3173 } 3174 3175 { 3176 psMetadata *md; 3177 pstampRequestRow *object; 3178 bool status; 3179 3180 object = pstampRequestRowAlloc(-64, -64, "a string", "a string"); 3181 if (!object) { 3182 exit(EXIT_FAILURE); 3183 } 3184 3185 md = pstampRequestMetadataFromObject(object); 3186 if (!md) { 3187 exit(EXIT_FAILURE); 3188 } 3189 3190 psFree(object); 3191 3192 psFree(md); 3193 exit(EXIT_FAILURE); 3194 } 3195 psFree(md); 3196 exit(EXIT_FAILURE); 3197 } 3198 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 3206 if (strncmp(psMetadataLookupPtr(&status, md, "outFileset"), "a string", MAX_STRING_LENGTH)) { 3199 3207 psFree(md); 3200 3208 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r16587 r16616 5074 5074 exit(EXIT_FAILURE); 5075 5075 } 5076 if (!psMetadataAddStr(md, PS_LIST_TAIL, "state", 0, NULL, "a string")) { 5077 psFree(md); 5078 exit(EXIT_FAILURE); 5079 } 5080 if (!psMetadataAddStr(md, PS_LIST_TAIL, "lastFileset", 0, NULL, "a string")) { 5081 psFree(md); 5082 exit(EXIT_FAILURE); 5083 } 5084 if (!psMetadataAddStr(md, PS_LIST_TAIL, "outProduct", 0, NULL, "a string")) { 5085 psFree(md); 5086 exit(EXIT_FAILURE); 5087 } 5076 5088 if (!psMetadataAddStr(md, PS_LIST_TAIL, "uri", 0, NULL, "a string")) { 5077 psFree(md);5078 exit(EXIT_FAILURE);5079 }5080 if (!psMetadataAddStr(md, PS_LIST_TAIL, "lastFileset", 0, NULL, "a string")) {5081 psFree(md);5082 exit(EXIT_FAILURE);5083 }5084 if (!psMetadataAddStr(md, PS_LIST_TAIL, "state", 0, NULL, "a string")) {5085 5089 psFree(md); 5086 5090 exit(EXIT_FAILURE); … … 5098 5102 exit(EXIT_FAILURE); 5099 5103 } 5104 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 5105 psFree(object); 5106 exit(EXIT_FAILURE); 5107 } 5108 if (strncmp(object->lastFileset, "a string", MAX_STRING_LENGTH)) { 5109 psFree(object); 5110 exit(EXIT_FAILURE); 5111 } 5112 if (strncmp(object->outProduct, "a string", MAX_STRING_LENGTH)) { 5113 psFree(object); 5114 exit(EXIT_FAILURE); 5115 } 5100 5116 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 5101 psFree(object);5102 exit(EXIT_FAILURE);5103 }5104 if (strncmp(object->lastFileset, "a string", MAX_STRING_LENGTH)) {5105 psFree(object);5106 exit(EXIT_FAILURE);5107 }5108 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {5109 5117 psFree(object); 5110 5118 exit(EXIT_FAILURE); … … 5129 5137 exit(EXIT_FAILURE); 5130 5138 } 5139 if (!psMetadataAddStr(md, PS_LIST_TAIL, "outFileset", 0, NULL, "a string")) { 5140 psFree(md); 5141 exit(EXIT_FAILURE); 5142 } 5131 5143 if (!psMetadataAddStr(md, PS_LIST_TAIL, "uri", 0, NULL, "a string")) { 5132 5144 psFree(md); … … 5149 5161 } 5150 5162 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 5163 psFree(object); 5164 exit(EXIT_FAILURE); 5165 } 5166 if (strncmp(object->outFileset, "a string", MAX_STRING_LENGTH)) { 5151 5167 psFree(object); 5152 5168 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
