sureshanaparti commented on code in PR #12481:
URL: https://github.com/apache/cloudstack/pull/12481#discussion_r2711769183
##########
engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/SnapshotDataStoreDaoImpl.java:
##########
@@ -578,4 +586,35 @@ public int expungeBySnapshotList(final List<Long>
snapshotIds, final Long batchS
sc.setParameters("snapshotIds", snapshotIds.toArray());
return batchExpunge(sc, batchSize);
}
+
+ /**
+ * Returns the total physical size, in bytes, of all snapshots stored on
primary
+ * storage for the specified account that have not yet been backed up to
+ * secondary storage.
+ *
+ * <p>If no such snapshots are found, this method returns {@code 0}.</p>
+ *
+ * @param accountId the ID of the account whose snapshots on primary
storage
+ * should be considered
+ * @return the total physical size in bytes of matching snapshots on
primary
+ * storage, or {@code 0} if none are found
+ */
Review Comment:
done
--
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]