@@ -285,7 +285,7 @@ absl::StatusOr<std::shared_ptr<fslib::FileSystem>> StarOSWorker::build_filesyste
285285
286286absl::StatusOr<std::pair<std::shared_ptr<std::string>, std::shared_ptr<fslib::FileSystem>>>
287287StarOSWorker::build_filesystem_from_shard_info (const ShardInfo& info, const Configuration& conf,
288- std::shared_ptr<std::string> existing_fs_cache_key) {
288+ const std::shared_ptr<std::string>& existing_fs_cache_key) {
289289 auto localconf = build_conf_from_shard_info (info);
290290 if (!localconf.ok ()) {
291291 return localconf.status ();
@@ -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, std::move ( existing_fs_cache_key) );
298+ return new_shared_filesystem (info.id , *scheme, *localconf, existing_fs_cache_key);
299299}
300300
301301bool StarOSWorker::need_enable_cache (const ShardInfo& info) {
@@ -338,7 +338,7 @@ absl::StatusOr<fslib::Configuration> StarOSWorker::build_conf_from_shard_info(co
338338
339339absl::StatusOr<std::pair<std::shared_ptr<std::string>, std::shared_ptr<fslib::FileSystem>>>
340340StarOSWorker::new_shared_filesystem (ShardId shard_id, std::string_view scheme, const Configuration& conf,
341- std::shared_ptr<std::string> existing_fs_cache_key) {
341+ const std::shared_ptr<std::string>& existing_fs_cache_key) {
342342 std::string cache_key = get_cache_key (scheme, conf);
343343
344344 // Lookup LRU cache
0 commit comments