| 205 | } |
| 206 | |
| 207 | std::optional<SessionOptionValue> FlightSession::GetSessionOption( |
| 208 | const std::string& name) { |
| 209 | const std::shared_lock<std::shared_mutex> l(map_lock_); |
| 210 | auto it = map_.find(name); |
| 211 | if (it != map_.end()) { |
| 212 | return it->second; |
| 213 | } else { |
| 214 | return std::nullopt; |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | std::map<std::string, SessionOptionValue> FlightSession::GetSessionOptions() { |
| 219 | const std::shared_lock<std::shared_mutex> l(map_lock_); |