should abort on daos init if pool/cont/svcl not specified.

Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@intel.com>
master
Mohamad Chaarawi 2019-06-28 16:20:56 +00:00
parent 2ae7c29de2
commit 9f9730d6fd
1 changed files with 4 additions and 1 deletions

View File

@ -258,8 +258,11 @@ DAOS_Init()
if (daos_initialized)
return;
if (o.pool == NULL || o.svcl == NULL || o.cont == NULL)
if (o.pool == NULL || o.svcl == NULL || o.cont == NULL) {
GERR("Invalid DAOS pool/cont\n");
return;
}
if (o.oclass)
ObjectClassParse(o.oclass);