| 158 | : client_(std::move(client)) {} |
| 159 | |
| 160 | future<Status> MutationBatcher::Push(gcs::ObjectMetadata const& o) { |
| 161 | std::unique_lock lk(mu_); |
| 162 | // Make room for the new data. |
| 163 | FlushIfNeeded(lk); |
| 164 | items_.push_back(Item{UpdateObjectMetadata(o), promise<Status>{}}); |
| 165 | return items_.back().done.get_future(); |
| 166 | } |
| 167 | |
| 168 | std::int64_t MutationBatcher::Flush() { |
| 169 | std::unique_lock lk(mu_); |
no test coverage detected