This would segfault if run on MDS in replay (asok
commands in general are permitted as soon as an MDS
gets a rank rather than waiting for it to be active)
Signed-off-by: John Spray <john.spray@redhat.com>
return -EROFS;
}
+ if (!is_active()) {
+ dout(5) << __func__ << ": MDS not active, no-op" << dendl;
+ return 0;
+ }
+
// I need to seal off the current segment, and then mark all previous segments
// for expiry
mdlog->start_new_segment();