| 342 | } |
| 343 | |
| 344 | void ArraySchemaEvolution::drop_enumeration( |
| 345 | const std::string& enumeration_name) { |
| 346 | std::lock_guard<std::mutex> lock(mtx_); |
| 347 | enumerations_to_drop_.insert(enumeration_name); |
| 348 | |
| 349 | auto add_it = enumerations_to_add_map_.find(enumeration_name); |
| 350 | if (add_it != enumerations_to_add_map_.end()) { |
| 351 | // Reset the pointer and erase it |
| 352 | enumerations_to_add_map_.erase(add_it); |
| 353 | } |
| 354 | |
| 355 | auto extend_it = enumerations_to_extend_map_.find(enumeration_name); |
| 356 | if (extend_it != enumerations_to_extend_map_.end()) { |
| 357 | enumerations_to_extend_map_.erase(extend_it); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | std::vector<std::string> ArraySchemaEvolution::enumeration_names_to_drop() |
| 362 | const { |
no test coverage detected