cea-hpc / robinhood

Robinhood Policy Engine : a versatile tool to monitor filesystem contents and schedule actions on filesystem entries.
http://robinhood.sf.net
Other
181 stars 62 forks source link

hsm_remove select statement always have ORDER BY #98

Closed dtcray closed 5 years ago

dtcray commented 6 years ago

Just discovered that SELECT statement for hsm_remove always have "ORDER BY rm_time" at the end of select statement no matter what is set in lru_sort_attr (in lhsm_remove_parameters) and default_lru_sort_attr in policy definition can anybody point me to the code responsible for this ?

dtcray commented 6 years ago

code found: listmgr_remove.c line 881 if (p_sort_type == NULL || p_sort_type->order == SORT_NONE) if sort is NONE or not defined add default sort, this could be pretty bad for crowded SOFT_RM table

tl-cea commented 5 years ago

Fixed in 3.1.5