db/simple/Directory: add LookupResult::uri

This commit is contained in:
Max Kellermann
2020-04-03 17:08:24 +02:00
parent 6c8eb3c7ed
commit bcf4645263
4 changed files with 10 additions and 9 deletions

View File

@@ -196,11 +196,7 @@ UpdateService::Enqueue(const char *path, bool discard)
storage2 = storage.GetMount(path);
path = "";
} else {
assert(lr.rest > path);
assert(lr.rest < path + strlen(path));
assert(lr.rest[-1] == '/');
const std::string mountpoint(path, lr.rest - 1);
const std::string mountpoint(lr.uri);
storage2 = storage.GetMount(mountpoint.c_str());
path = lr.rest;
}