]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
storage: Remove duplicitous refreshVol in RBD buildVol
authorJohn Ferlan <jferlan@redhat.com>
Thu, 8 Oct 2015 17:28:23 +0000 (13:28 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 13 Oct 2015 22:03:55 +0000 (18:03 -0400)
As of commit id '155ca616' a 'refreshVol' is called after the buildVol
succeeds in storageVolCreateXML, thus the volStorageBackendRBDRefreshVolInfo
call in virStorageBackendRBDBuildVol is no longer necessary.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_rbd.c

index ac5085a9c677999137cec28c0f55ee3a73918dcd..5ae4713260844b1d7988c701cef35e9dbd1d047e 100644 (file)
@@ -532,9 +532,6 @@ virStorageBackendRBDBuildVol(virConnectPtr conn,
         goto cleanup;
     }
 
-    if (volStorageBackendRBDRefreshVolInfo(vol, pool, &ptr) < 0)
-        goto cleanup;
-
     ret = 0;
 
  cleanup: