the rename makes the code consistent and allows to call the
`MDSContext::finish` method from the `C_MDS_DumpStrayDirCtx::finish` method,
which fortifies the safety of the new dump stray folder command.
Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: http://tracker.ceph.com/issues/56442
(cherry picked from commit
df404e03915765ef5c854a48556fd716161f3add)
#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_mds
-void MDSContext::complete(int r) {
+void MDSContext::finish(int r) {
MDSRank *mds = get_mds();
ceph_assert(mds != nullptr);
ceph_assert(ceph_mutex_is_locked_by_me(mds->mds_lock));
- dout(10) << "MDSContext::complete: " << typeid(*this).name() << dendl;
+ dout(10) << "MDSContext::finish: " << typeid(*this).name() << dendl;
mds->heartbeat_reset();
- return Context::complete(r);
}
void MDSInternalContextWrapper::finish(int r)
using que_alloc = std::deque<MDSContext*, A<MDSContext*>>;
using que = que_alloc<std::allocator>;
- void complete(int r) override;
+ void finish(int r) override;
virtual MDSRank *get_mds() = 0;
};