提交 ba6575e2 编写于 作者: J John Ferlan

storage: Use virStoragePoolObjGetDef accessor for new driver events

Missed from merge from commit id 'b0652192' into commit id 'bfcd8fc9'
were a couple of obj->def-> references.
上级 121cf746
...@@ -994,8 +994,8 @@ storagePoolBuild(virStoragePoolPtr pool, ...@@ -994,8 +994,8 @@ storagePoolBuild(virStoragePoolPtr pool,
backend->buildPool(pool->conn, obj, flags) < 0) backend->buildPool(pool->conn, obj, flags) < 0)
goto cleanup; goto cleanup;
event = virStoragePoolEventLifecycleNew(obj->def->name, event = virStoragePoolEventLifecycleNew(def->name,
obj->def->uuid, def->uuid,
VIR_STORAGE_POOL_EVENT_CREATED, VIR_STORAGE_POOL_EVENT_CREATED,
0); 0);
...@@ -1128,8 +1128,8 @@ storagePoolDelete(virStoragePoolPtr pool, ...@@ -1128,8 +1128,8 @@ storagePoolDelete(virStoragePoolPtr pool,
if (backend->deletePool(pool->conn, obj, flags) < 0) if (backend->deletePool(pool->conn, obj, flags) < 0)
goto cleanup; goto cleanup;
event = virStoragePoolEventLifecycleNew(obj->def->name, event = virStoragePoolEventLifecycleNew(def->name,
obj->def->uuid, def->uuid,
VIR_STORAGE_POOL_EVENT_DELETED, VIR_STORAGE_POOL_EVENT_DELETED,
0); 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册