Skip to content

Commit 1de46f3

Browse files
wangshaohui.0512vshankar
authored andcommitted
cephfs: make sure mon authenticate before objecter start
Signed-off-by: Shaohui Wang <[email protected]>
1 parent 8cce327 commit 1de46f3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/client/Client.cc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19213,6 +19213,22 @@ int StandaloneClient::init()
1921319213
monclient->shutdown();
1921419214
return r;
1921519215
}
19216+
19217+
r = authenticate();
19218+
if (r < 0) {
19219+
// need to do cleanup because we're in an intermediate init state
19220+
{
19221+
std::scoped_lock l(timer_lock);
19222+
timer.shutdown();
19223+
}
19224+
19225+
client_lock.unlock();
19226+
objecter->shutdown();
19227+
objectcacher->stop();
19228+
monclient->shutdown();
19229+
return r;
19230+
}
19231+
1921619232
objecter->start();
1921719233

1921819234
client_lock.unlock();

0 commit comments

Comments
 (0)