rhtyd commented on a change in pull request #5586:
URL: https://github.com/apache/cloudstack/pull/5586#discussion_r733384266



##########
File path: server/src/main/java/com/cloud/storage/StorageManagerImpl.java
##########
@@ -501,6 +498,13 @@ private GetStorageStatsAnswer 
getStoragePoolStats(StoragePool pool, GetStorageSt
         return answer;
     }
 
+    @Override
+    public boolean canPoolProvideStorageStats(StoragePool pool) {
+        DataStoreProvider storeProvider = 
_dataStoreProviderMgr.getDataStoreProvider(pool.getStorageProviderName());
+        DataStoreDriver storeDriver = storeProvider.getDataStoreDriver();

Review comment:
       @sureshanaparti do we need to do any defensive/null checks?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to