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


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/SnapshotChainManager.java:
##########
@@ -131,6 +133,7 @@ private void addSnapshotPath(String snapshotPath,
             new SnapshotChainInfo(snapshotID, prevPathID, null));
 
     // set state variable latestPath snapshot entry to this snapshotID
+    snapshotPathToKey.put(snapshotID, snapTableKey);
     latestPathSnapshotID.put(snapshotPath, snapshotID);

Review Comment:
   Comment out of order.
   
   ```suggestion
       // store snapshot ID to snapshot DB table key in the map
       snapshotPathToKey.put(snapshotID, snapTableKey);
       // set state variable latestPath snapshot entry to this snapshotID
       latestPathSnapshotID.put(snapshotPath, snapshotID);
   ```



-- 
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