db/update/Service: avoid copying the mount point path
This commit is contained in:
parent
c3cfb5fe16
commit
9964a5ffe8
@ -196,8 +196,7 @@ UpdateService::Enqueue(std::string_view path, bool discard)
|
||||
storage2 = storage.GetMount(path);
|
||||
path = "";
|
||||
} else {
|
||||
const std::string mountpoint(lr.uri);
|
||||
storage2 = storage.GetMount(mountpoint.c_str());
|
||||
storage2 = storage.GetMount(lr.uri);
|
||||
path = lr.rest;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user