[x] I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.
Describe the bug
Priority sorting of transactions is inaccurate.
To Reproduce
Steps to reproduce the behavior:
Set up two polling directories, dir 1 with non-zero priority, dir 2 with zero priority.
Disable CF wakeups
Copy file 1 to dir 1
Copy file 2 to dir 2
Enable CF wakeups (to ensure both transactions are processed the same wakeup)
Bug: file 1 will be sent before file 2 (file 2 will be placed in the pending queue afterfile 1)
Expected behaviorfile 2 should be prioritized over file 1, and placed in the pending queue beforefile 1
System observed on:
Hardware
OS: Oracle Linux 8
Suggested Fix
Create a new static inline function _CF_CList_InsertFrontEx in cf_utils.h
Replace _CF_CList_InsertBackEx with _CF_CList_InsertFrontEx in _CFInsertSortPrio in cf_utils.c
and update variable name from _insertback to _insertfront in _CFInsertSortPrio in cf_utils.c
Checklist (Please check before submitting)
Describe the bug Priority sorting of transactions is inaccurate.
To Reproduce Steps to reproduce the behavior:
Expected behavior file 2 should be prioritized over file 1, and placed in the pending queue before file 1
System observed on:
Suggested Fix Create a new static inline function _CF_CList_InsertFrontEx in cf_utils.h Replace _CF_CList_InsertBackEx with _CF_CList_InsertFrontEx in _CFInsertSortPrio in cf_utils.c and update variable name from _insertback to _insertfront in _CFInsertSortPrio in cf_utils.c
Reporter Info Corey Tolbert, JSC cFS team