resolve mount location
This commit is contained in:
1 parent
a8715c8ec4
commit
41fe87d90a
1 file changed
+4
-2
@@ -390,12 +390,14 @@ void mgmt_app_config::set_mount_location(provider_type prov,
|
||||
return;
|
||||
}
|
||||
|
||||
auto resolved_location = utils::path::absolute(location);
|
||||
|
||||
recur_mutex_lock lock(mtx_);
|
||||
if (locations_[prov][std::string{name}] == std::string{location}) {
|
||||
if (locations_[prov][std::string{name}] == resolved_location) {
|
||||
return;
|
||||
}
|
||||
|
||||
locations_[prov][std::string{name}] = std::string{location};
|
||||
locations_[prov][std::string{name}] = resolved_location;
|
||||
|
||||
save();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user