mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
osd: hold lock while calling start_boot on startup
This probably doesn't strictly matter because start_boot doesn't need the lock (currently) and few other threads should be running, but it is better to be consistent. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
ad6b231127
commit
c406476c03
@ -1030,10 +1030,11 @@ int OSD::init()
|
||||
derr << "unable to obtain rotating service keys; retrying" << dendl;
|
||||
}
|
||||
|
||||
osd_lock.Lock();
|
||||
|
||||
state = STATE_BOOTING;
|
||||
start_boot();
|
||||
|
||||
osd_lock.Lock();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user