Skip to content

Commit

Permalink
Merge pull request #7847 from tangledbytes/utkarsh/fix/incorrect-stor…
Browse files Browse the repository at this point in the history
…age-class

[NC | NSFS] Disallow incorrect storage classes
  • Loading branch information
tangledbytes authored Mar 5, 2024
2 parents c0da9b5 + 278e3ad commit 8c658a9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/sdk/namespace_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3026,9 +3026,13 @@ class NamespaceFS {
async _is_storage_class_supported(storage_class) {
if (!storage_class || storage_class === s3_utils.STORAGE_CLASS_STANDARD) return true;

// TODO: Upon integration with underlying systems, we should
// check if archiving is actually supported or not
return config.NSFS_GLACIER_ENABLED || false;
if (storage_class === s3_utils.STORAGE_CLASS_GLACIER) {
// TODO: Upon integration with underlying systems, we should
// check if archiving is actually supported or not
return config.NSFS_GLACIER_ENABLED || false;
}

return false;
}

async append_to_migrate_wal(entry) {
Expand Down

0 comments on commit 8c658a9

Please sign in to comment.