nvazquez commented on code in PR #6902:
URL: https://github.com/apache/cloudstack/pull/6902#discussion_r1038211490
##########
plugins/storage/volume/storpool/src/main/java/org/apache/cloudstack/storage/datastore/driver/StorPoolPrimaryDataStoreDriver.java:
##########
@@ -273,9 +273,11 @@ public void resize(DataObject data,
AsyncCompletionCallback<CreateCmdResult> cal
try {
SpConnectionDesc conn =
StorPoolUtil.getSpConnection(data.getDataStore().getUuid(),
data.getDataStore().getId(), storagePoolDetailsDao, primaryStoreDao);
- StorPoolUtil.spLog("StorpoolPrimaryDataStoreDriverImpl.resize:
name=%s, uuid=%s, oldSize=%d, newSize=%s, shrinkOk=%s", name, vol.getUuid(),
oldSize, payload.newSize, payload.shrinkOk);
+ long maxIops = payload.newMaxIops == null ? Long.valueOf(0) :
payload.newMaxIops;
Review Comment:
Maybe also add a null check for payload?
--
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]