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);
|
storage2 = storage.GetMount(path);
|
||||||
path = "";
|
path = "";
|
||||||
} else {
|
} else {
|
||||||
const std::string mountpoint(lr.uri);
|
storage2 = storage.GetMount(lr.uri);
|
||||||
storage2 = storage.GetMount(mountpoint.c_str());
|
|
||||||
path = lr.rest;
|
path = lr.rest;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user