Changeset 15533 for trunk/ippdb/src/ippdb.c
- Timestamp:
- Nov 8, 2007, 5:34:06 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/src/ippdb.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/src/ippdb.c
r15530 r15533 9592 9592 static void warpSkyfileRowFree(warpSkyfileRow *object); 9593 9593 9594 warpSkyfileRow *warpSkyfileRowAlloc(psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignore , psS16 fault)9594 warpSkyfileRow *warpSkyfileRowAlloc(psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignored, psS16 fault) 9595 9595 { 9596 9596 warpSkyfileRow *_object; … … 9607 9607 _object->bg_stdev = bg_stdev; 9608 9608 _object->good_frac = good_frac; 9609 _object->ignore = ignore;9609 _object->ignored = ignored; 9610 9610 _object->fault = fault; 9611 9611 … … 9664 9664 return false; 9665 9665 } 9666 if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore ", PS_DATA_BOOL, "Key", 0)) {9667 psError(PS_ERR_UNKNOWN, false, "failed to add item ignore ");9666 if (!psMetadataAdd(md, PS_LIST_TAIL, "ignored", PS_DATA_BOOL, "Key", 0)) { 9667 psError(PS_ERR_UNKNOWN, false, "failed to add item ignored"); 9668 9668 psFree(md); 9669 9669 return false; … … 9687 9687 } 9688 9688 9689 bool warpSkyfileInsert(psDB * dbh, psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignore , psS16 fault)9689 bool warpSkyfileInsert(psDB * dbh, psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignored, psS16 fault) 9690 9690 { 9691 9691 psMetadata *md = psMetadataAlloc(); … … 9730 9730 return false; 9731 9731 } 9732 if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore ", PS_DATA_BOOL, NULL, ignore)) {9733 psError(PS_ERR_UNKNOWN, false, "failed to add item ignore ");9732 if (!psMetadataAdd(md, PS_LIST_TAIL, "ignored", PS_DATA_BOOL, NULL, ignored)) { 9733 psError(PS_ERR_UNKNOWN, false, "failed to add item ignored"); 9734 9734 psFree(md); 9735 9735 return false; … … 9763 9763 bool warpSkyfileInsertObject(psDB *dbh, warpSkyfileRow *object) 9764 9764 { 9765 return warpSkyfileInsert(dbh, object->warp_id, object->skycell_id, object->tess_id, object->uri, object->path_base, object->bg, object->bg_stdev, object->good_frac, object->ignore , object->fault);9765 return warpSkyfileInsert(dbh, object->warp_id, object->skycell_id, object->tess_id, object->uri, object->path_base, object->bg, object->bg_stdev, object->good_frac, object->ignored, object->fault); 9766 9766 } 9767 9767 … … 9876 9876 return false; 9877 9877 } 9878 if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore ", PS_DATA_BOOL, NULL, object->ignore)) {9879 psError(PS_ERR_UNKNOWN, false, "failed to add item ignore ");9878 if (!psMetadataAdd(md, PS_LIST_TAIL, "ignored", PS_DATA_BOOL, NULL, object->ignored)) { 9879 psError(PS_ERR_UNKNOWN, false, "failed to add item ignored"); 9880 9880 psFree(md); 9881 9881 return false; … … 9935 9935 return false; 9936 9936 } 9937 bool ignore = psMetadataLookupBool(&status, md, "ignore");9938 if (!status) { 9939 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item ignore ");9937 bool ignored = psMetadataLookupBool(&status, md, "ignored"); 9938 if (!status) { 9939 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item ignored"); 9940 9940 return false; 9941 9941 } … … 9946 9946 } 9947 9947 9948 return warpSkyfileRowAlloc(warp_id, skycell_id, tess_id, uri, path_base, bg, bg_stdev, good_frac, ignore , fault);9948 return warpSkyfileRowAlloc(warp_id, skycell_id, tess_id, uri, path_base, bg, bg_stdev, good_frac, ignored, fault); 9949 9949 } 9950 9950 psArray *warpSkyfileSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit)
Note:
See TracChangeset
for help on using the changeset viewer.
