@@ -32,7 +32,6 @@ const bucket_semaphore = new KeysSemaphore(1);
32
32
class BucketSpaceFS extends BucketSpaceSimpleFS {
33
33
constructor ( { config_root} , stats ) {
34
34
super ( { fs_root : '' } ) ;
35
- this . fs_root = '' ;
36
35
this . config_root = config_root ;
37
36
this . stats = stats ;
38
37
this . fs_context = get_process_fs_context (
@@ -105,7 +104,7 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
105
104
106
105
const nsr = {
107
106
resource : {
108
- fs_root_path : this . fs_root ,
107
+ fs_root_path : '' ,
109
108
fs_backend : bucket . fs_backend
110
109
} ,
111
110
path : bucket . path
@@ -152,7 +151,7 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
152
151
}
153
152
154
153
async check_bucket_config ( bucket ) {
155
- const bucket_storage_path = path . join ( this . fs_root , bucket . path ) ;
154
+ const bucket_storage_path = bucket . path ;
156
155
try {
157
156
await nb_native ( ) . fs . stat ( this . fs_context , bucket_storage_path ) ;
158
157
//TODO: Bucket owner check
@@ -326,8 +325,8 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
326
325
327
326
if ( namespace_bucket_config . should_create_underlying_storage ) {
328
327
// 1. delete underlying storage (ULS = Underline Storage)
329
- dbg . log1 ( 'BucketSpaceFS.delete_bucket: deleting uls' , this . fs_root , namespace_bucket_config . write_resource . path ) ;
330
- const bucket_storage_path = path . join ( this . fs_root , namespace_bucket_config . write_resource . path ) ; // includes write_resource.path + bucket name (s3 flow)
328
+ dbg . log1 ( 'BucketSpaceFS.delete_bucket: deleting uls' , namespace_bucket_config . write_resource . path ) ;
329
+ const bucket_storage_path = namespace_bucket_config . write_resource . path ; // includes write_resource.path + bucket name (s3 flow)
331
330
try {
332
331
await ns . delete_uls ( { name, full_path : bucket_storage_path } , object_sdk ) ;
333
332
} catch ( err ) {
0 commit comments