Add primary check in OSD.cc