Skip to content

Commit f1f1b01

Browse files
committed
Remove redundant parameters
1 parent fabd3b5 commit f1f1b01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

be/src/service/staros_worker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ StarOSWorker::build_filesystem_from_shard_info(const ShardInfo& info, const Conf
295295
return scheme.status();
296296
}
297297

298-
return new_shared_filesystem(info.id, *scheme, *localconf, existing_fs_cache_key);
298+
return new_shared_filesystem(*scheme, *localconf, existing_fs_cache_key);
299299
}
300300

301301
bool StarOSWorker::need_enable_cache(const ShardInfo& info) {
@@ -337,7 +337,7 @@ absl::StatusOr<fslib::Configuration> StarOSWorker::build_conf_from_shard_info(co
337337
}
338338

339339
absl::StatusOr<std::pair<std::shared_ptr<std::string>, std::shared_ptr<fslib::FileSystem>>>
340-
StarOSWorker::new_shared_filesystem(ShardId shard_id, std::string_view scheme, const Configuration& conf,
340+
StarOSWorker::new_shared_filesystem(std::string_view scheme, const Configuration& conf,
341341
const std::shared_ptr<std::string>& existing_fs_cache_key) {
342342
std::string cache_key = get_cache_key(scheme, conf);
343343

be/src/service/staros_worker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class StarOSWorker : public staros::starlet::Worker {
126126
build_filesystem_from_shard_info(const ShardInfo& info, const Configuration& conf,
127127
const std::shared_ptr<std::string>& existing_fs_cache_key = nullptr);
128128
absl::StatusOr<std::pair<std::shared_ptr<std::string>, std::shared_ptr<FileSystem>>> new_shared_filesystem(
129-
ShardId shard_id, std::string_view scheme, const Configuration& conf,
129+
std::string_view scheme, const Configuration& conf,
130130
const std::shared_ptr<std::string>& existing_fs_cache_key = nullptr);
131131
absl::Status invalidate_fs(const ShardInfo& shard);
132132

0 commit comments

Comments
 (0)