smengcl commented on code in PR #10210:
URL: https://github.com/apache/ozone/pull/10210#discussion_r3211807139


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/OmSnapshotLocalDataManager.java:
##########
@@ -876,6 +877,7 @@ public void addSnapshotVersion(RDBStore snapshotStore) 
throws IOException {
       Optional<OmSnapshotLocalData> previousSnapshotLocalData = 
getPreviousSnapshotLocalData();
       this.getSnapshotLocalData().addVersionSSTFileInfos(sstFiles,
           
previousSnapshotLocalData.map(OmSnapshotLocalData::getVersion).orElse(0));
+      this.getSnapshotLocalData().setLastDefragTime(Time.now());
       // Adding a new snapshot version means it has been defragged thus the 
flag needs to be reset.
       this.getSnapshotLocalData().setNeedsDefrag(false);

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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to