| 235 | } |
| 236 | |
| 237 | void ArraySchemaEvolution::drop_attribute(const std::string& attribute_name) { |
| 238 | std::lock_guard<std::mutex> lock(mtx_); |
| 239 | attributes_to_drop_.insert(attribute_name); |
| 240 | |
| 241 | // Remove any added attributes with this name |
| 242 | attributes_to_add_.erase( |
| 243 | std::remove_if( |
| 244 | attributes_to_add_.begin(), |
| 245 | attributes_to_add_.end(), |
| 246 | [&](auto& a) { return a->name() == attribute_name; }), |
| 247 | attributes_to_add_.end()); |
| 248 | } |
| 249 | |
| 250 | std::vector<std::string> ArraySchemaEvolution::attribute_names_to_drop() const { |
| 251 | std::lock_guard<std::mutex> lock(mtx_); |
no test coverage detected