| 242 | } |
| 243 | |
| 244 | SequentialUID ObjectStore::firstSequentialUID(ObjectTopicId id) const { |
| 245 | std::shared_lock store_lock(store_mutex_); |
| 246 | const auto* series = findSeries(id); |
| 247 | if (series == nullptr) { |
| 248 | return {}; |
| 249 | } |
| 250 | |
| 251 | std::shared_lock lock(series->mutex); |
| 252 | if (series->entries.empty()) { |
| 253 | return {}; |
| 254 | } |
| 255 | return series->entries.front().sequential_uid; |
| 256 | } |
| 257 | |
| 258 | SequentialUID ObjectStore::nextUIDAfter(ObjectTopicId id, SequentialUID after) const { |
| 259 | std::shared_lock store_lock(store_mutex_); |