This allows a with_interruption caller to specify an epoch other than
the current pg epoch. Doing so is important if the operation in question
was initiated prior to continuation which invokes with_interruption and
a map advance may have occured in the mean time.
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit
7a1b91ac5e030c490279d8140e568d6d08aba3c8)
namespace crimson::osd {
+IOInterruptCondition::IOInterruptCondition(Ref<PG>& pg, epoch_t e)
+ : pg(pg), e(e) {}
IOInterruptCondition::IOInterruptCondition(Ref<PG>& pg)
: pg(pg), e(pg->get_osdmap_epoch()) {}
class IOInterruptCondition {
public:
+ IOInterruptCondition(Ref<PG>& pg, epoch_t e);
IOInterruptCondition(Ref<PG>& pg);
~IOInterruptCondition();