xBis7 commented on code in PR #4824:
URL: https://github.com/apache/ozone/pull/4824#discussion_r1223280342
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java:
##########
@@ -371,6 +378,35 @@ private Set<String> getSSTFileListForSnapshot(OmSnapshot
snapshot,
.getPath(), tablesToLookUp);
}
+ public List<SnapshotDiffJob> getSnapshotDiffJobList(
+ String volumeName, String bucketName,
+ String jobStatus, boolean listAll) {
+ List<SnapshotDiffJob> jobList = new ArrayList<>();
+
+ try (ClosableIterator<Map.Entry<String, SnapshotDiffJob>> iterator =
+ snapDiffJobTable.iterator()) {
+ while (iterator.hasNext()) {
+ SnapshotDiffJob snapshotDiffJob = iterator.next().getValue();
+ if (snapshotDiffJob.getVolume().equals(volumeName) &&
Review Comment:
ah I get it. I'll keep it in mind.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]