.set_default(false)
.set_flag(Option::FLAG_RUNTIME),
+ Option("mds_standby_replay_damaged", Option::TYPE_BOOL, Option::LEVEL_DEV)
+ .set_default(false)
+ .set_flag(Option::FLAG_RUNTIME)
+ .set_description(""),
+
Option("mds_numa_node", Option::TYPE_INT, Option::LEVEL_ADVANCED)
.set_default(-1)
.set_flag(Option::FLAG_STARTUP)
#include <typeinfo>
#include "common/debug.h"
#include "common/errno.h"
+#include "common/likely.h"
#include "common/async/blocked_completion.h"
#include "messages/MClientRequestForward.h"
{
dout(1) << "replay_start" << dendl;
- if (is_standby_replay())
+ if (is_standby_replay()) {
standby_replaying = true;
+ if (unlikely(g_conf().get_val<bool>("mds_standby_replay_damaged"))) {
+ damaged();
+ }
+ }
// Check if we need to wait for a newer OSD map before starting
bool const ready = objecter->with_osdmap(