| 37 | } |
| 38 | |
| 39 | DataStorage::Pointer DataStorageService::GetActiveDataStorage() const |
| 40 | { |
| 41 | std::lock_guard<std::mutex> lock(m_Mutex); |
| 42 | |
| 43 | if (!m_ActiveLabel.empty()) |
| 44 | { |
| 45 | auto info = this->FindStorageByLabel(m_ActiveLabel); |
| 46 | if (info.IsValid()) |
| 47 | { |
| 48 | return info.GetStorage(); |
| 49 | } |
| 50 | } |
| 51 | return m_DefaultStorage.GetStorage(); |
| 52 | } |
| 53 | |
| 54 | DataStorageReference DataStorageService::GetActiveDataStorageReference() const |
| 55 | { |