Skip to content

Commit 252801a

Browse files
committed
crimson/.../pg_interval_interrupt_condition: remove IOInterruptCondition(Ref<PG>& pg); constructor
This variant is error prone, better to be explicit. Signed-off-by: Samuel Just <[email protected]>
1 parent eec5d0b commit 252801a

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/crimson/osd/pg_interval_interrupt_condition.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ namespace crimson::osd {
1717

1818
IOInterruptCondition::IOInterruptCondition(Ref<PG>& pg, epoch_t e)
1919
: pg(pg), e(e) {}
20-
IOInterruptCondition::IOInterruptCondition(Ref<PG>& pg)
21-
: pg(pg), e(pg->get_osdmap_epoch()) {}
2220

2321
IOInterruptCondition::~IOInterruptCondition() {
2422
// for the sake of forward declaring PG (which is a detivate of

src/crimson/osd/pg_interval_interrupt_condition.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class PG;
1515
class IOInterruptCondition {
1616
public:
1717
IOInterruptCondition(Ref<PG>& pg, epoch_t e);
18-
IOInterruptCondition(Ref<PG>& pg);
1918
~IOInterruptCondition();
2019

2120
bool new_interval_created();

0 commit comments

Comments
 (0)