smengcl commented on code in PR #5201:
URL: https://github.com/apache/ozone/pull/5201#discussion_r1298831693
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/SnapshotInfo.java:
##########
@@ -599,4 +596,27 @@ public int hashCode() {
creationTime, deletionTime, pathPreviousSnapshotId,
globalPreviousSnapshotId, snapshotPath, checkpointDir);
}
+
+ /**
+ * Return a new copy of the object.
+ */
+ @Override
+ public SnapshotInfo copyObject() {
+ return new Builder()
+ .setSnapshotId(snapshotId)
+ .setName(name)
+ .setVolumeName(volumeName)
+ .setBucketName(bucketName)
+ .setSnapshotStatus(snapshotStatus)
+ .setCreationTime(creationTime)
+ .setDeletionTime(deletionTime)
+ .setPathPreviousSnapshotId(pathPreviousSnapshotId)
+ .setGlobalPreviousSnapshotId(globalPreviousSnapshotId)
+ .setSnapshotPath(snapshotPath)
+ .setCheckpointDir(checkpointDir)
+ .setDbTxSequenceNumber(dbTxSequenceNumber)
+ .setDeepClean(deepClean)
+ .setSstFiltered(sstFiltered)
+ .build();
Review Comment:
Note to self: Need to append to this part in #5175
--
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]