Commit 9964a5ff authored by Max Kellermann's avatar Max Kellermann

db/update/Service: avoid copying the mount point path

parent c3cfb5fe
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment