Skip to content

Commit 9d86f2e

Browse files
authored
Merge pull request #8877 from romayalon/romy-tmp-disable-gpfs-lifecycle-rules
NC | LIFECYCLE | Add temporary NC_LIFECYCLE_GPFS_ILM_ENABLED configuration
2 parents 13e7442 + 6845cdc commit 9d86f2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,7 @@ config.NC_LIFECYCLE_RUN_DELAY_LIMIT_MINS = 2;
10321032
/** @type {'UTC' | 'LOCAL'} */
10331033
config.NC_LIFECYCLE_TZ = 'LOCAL';
10341034

1035+
config.NC_LIFECYCLE_GPFS_ILM_ENABLED = false;
10351036
////////// GPFS //////////
10361037
config.GPFS_DOWN_DELAY = 1000;
10371038

src/manage_nsfs/nc_lifecycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function _get_lifecycle_object_info_from_list_object_entry(entry) {
372372
*/
373373
async function get_candidates_by_expiration_rule(lifecycle_rule, bucket_json, object_sdk) {
374374
const is_gpfs = nb_native().fs.gpfs;
375-
if (is_gpfs) {
375+
if (is_gpfs && config.NC_LIFECYCLE_GPFS_ILM_ENABLED) {
376376
return get_candidates_by_expiration_rule_gpfs(lifecycle_rule, bucket_json);
377377
} else {
378378
return get_candidates_by_expiration_rule_posix(lifecycle_rule, bucket_json, object_sdk);

0 commit comments

Comments
 (0)