Skip to content

Commit

Permalink
CR changes 4
Browse files Browse the repository at this point in the history
Signed-off-by: shirady <[email protected]>
  • Loading branch information
shirady committed Nov 19, 2024
1 parent 701a905 commit df6479f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/sdk/bucketspace_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
if (!is_valid) {
dbg.warn('BucketSpaceFS: invalid storage path for bucket : ', name);
}
//TODO: Bucket owner check

const nsr = {
resource: {
Expand Down Expand Up @@ -198,7 +197,7 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
return current_stat.ino === bucket_stat.ino && current_stat.mtimeNsBigint === bucket_stat.mtimeNsBigint;
}
} catch (err) {
dbg.log4('check_same_stat: current_stat got an error', err, 'ignoring...');
dbg.warn('check_same_stat: current_stat got an error', err, 'ignoring...');
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/sdk/config_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -891,10 +891,10 @@ class ConfigFS {
* @param {string} bucket_name
* @returns {Promise<nb.NativeFSStats>}
*/
stat_bucket_config_file(bucket_name) {
const bucket_config_path = this.get_bucket_path_by_name(bucket_name);
return nb_native().fs.stat(this.fs_context, bucket_config_path);
}
stat_bucket_config_file(bucket_name) {
const bucket_config_path = this.get_bucket_path_by_name(bucket_name);
return nb_native().fs.stat(this.fs_context, bucket_config_path);
}

/**
* is_bucket_exists returns true if bucket config path exists in config dir
Expand Down

0 comments on commit df6479f

Please sign in to comment.