]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/common/operation: use std::list for AggregateBlockingEvent::events
authorSamuel Just <sjust@redhat.com>
Sat, 7 May 2022 05:42:47 +0000 (22:42 -0700)
committerSamuel Just <sjust@redhat.com>
Sat, 7 May 2022 06:56:09 +0000 (23:56 -0700)
std::vector's references aren't stable after emplace_back.

Fixes: https://tracker.ceph.com/issues/55565
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/common/operation.h

index 634d303b4acfb6900adad5698c006270a2499260..ec224deb7d919283e044ff7b0e19edd58e19d95d 100644 (file)
@@ -262,7 +262,7 @@ struct AggregateBlockingEvent {
   };
 
 private:
-  std::vector<T> events;
+  std::list<T> events;
   template <class OpT>
   friend class Trigger;
 };