fix FSMakeFSSpec

This commit is contained in:
Kelvin Sherlock 2015-01-15 19:48:03 -05:00
parent 74370db603
commit e8d756c1b6

View File

@ -63,7 +63,7 @@ namespace OS {
if (!insert) return -1; if (!insert) return -1;
_pathQueue.emplace_back(FSSpecManager::Entry(path, hash)); _pathQueue.emplace_back(FSSpecManager::Entry(path, hash));
return _pathQueue.size(); return _pathQueue.size() + RootPathID - 1;
} }
int32_t FSSpecManager::IDForPath(std::string &&path, bool insert) int32_t FSSpecManager::IDForPath(std::string &&path, bool insert)
@ -96,7 +96,7 @@ namespace OS {
if (!insert) return -1; if (!insert) return -1;
_pathQueue.emplace_back(FSSpecManager::Entry(std::move(path), hash)); _pathQueue.emplace_back(FSSpecManager::Entry(std::move(path), hash));
return _pathQueue.size(); return _pathQueue.size() + RootPathID - 1;
} }