| 199 | } |
| 200 | |
| 201 | bool DataStorageService::HasDataStorage(const std::string& label) const |
| 202 | { |
| 203 | std::lock_guard<std::mutex> lock(m_Mutex); |
| 204 | |
| 205 | if (label == DEFAULT_LABEL || m_DefaultStorage.GetLabel() == label) |
| 206 | { |
| 207 | return true; |
| 208 | } |
| 209 | |
| 210 | return this->FindStorageByLabel(label).IsValid(); |
| 211 | } |
| 212 | |
| 213 | bool DataStorageService::RemoveDataStorage(const std::string& label) |
| 214 | { |