| 165 | } |
| 166 | |
| 167 | void ContentStorageManager::OnRenamed(const StringView& oldPath, const StringView& newPath) |
| 168 | { |
| 169 | ScopeLock lock(Locker); |
| 170 | |
| 171 | // Update cached path key |
| 172 | auto i = StorageMap.Find(oldPath); |
| 173 | if (i != StorageMap.End()) |
| 174 | { |
| 175 | ASSERT(!StorageMap.ContainsKey(newPath)); |
| 176 | const auto value = i->Value; |
| 177 | StorageMap.Remove(i); |
| 178 | StorageMap.Add(newPath, value); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | void ContentStorageManager::EnsureUnlocked() |
| 183 | { |
nothing calls this directly
no test coverage detected