-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #441, cf delete files during error when tx #443
Conversation
* See description in cf_cfdp.h for argument/return detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
bool CF_CFDP_IsPollingDir(const char * src_file, uint8 chan_num) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
Fix nasa#441, Update to handle error during tx. 1. For polling, the file gets moved or deleted to pervent infinite loop 2. For others, the file does not get deleted.
9fafd0f
to
e187427
Compare
void CF_CFDP_HandleNotKeepFile(CF_Transaction_t *txn) | ||
{ | ||
/* Sender */ | ||
if (CF_CFDP_IsSender(txn)) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression Warning
* See description in cf_cfdp.h for argument/return detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
void CF_CFDP_MoveFile(const char *src, const char *dest_dir) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* See description in cf_cfdp.h for argument/return detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
void CF_CFDP_HandleNotKeepFile(CF_Transaction_t *txn) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
closing pull request. |
Fix #441, Update to handle error during tx.
Checklist (Please check before submitting)
Describe the contribution
A clear and concise description of what the contribution is.
Fixes #441, cf was deleting file during error. This update how the cf handle error during tx.
Testing performed
Steps taken to test the contribution:
Tested against DACINCI's build
Expected behavior changes
A clear and concise description of how this contribution will change behavior and level of impact.
Two updates:
System(s) tested on
docker - ubunutu 22.04
Additional context
Add any other context about the contribution here.
Third party code
If included, identify any third party code and provide text file of the license
Contributor Info - All information REQUIRED for consideration of pull request
Full name and company/organization/center of all contributors ("Personal" if individual work)
Anh Van, GSFC