Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantk-12 committed Aug 15, 2024
1 parent 0341e74 commit 0db26cb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ private void updateSnapshotChainAndCache(

private SnapshotInfo getUpdatedSnapshotInfo(String snapshotTableKey, OMMetadataManager omMetadataManager)
throws IOException {
if (updatedSnapshotInfos.containsKey(snapshotTableKey)) {
return updatedSnapshotInfos.get(snapshotTableKey);
} else {
SnapshotInfo snapshotInfo = omMetadataManager.getSnapshotInfoTable().get(snapshotTableKey);
SnapshotInfo snapshotInfo = updatedSnapshotInfos.get(snapshotTableKey);

if (snapshotInfo == null) {
snapshotInfo = omMetadataManager.getSnapshotInfoTable().get(snapshotTableKey);
updatedSnapshotInfos.put(snapshotTableKey, snapshotInfo);
return snapshotInfo;
}
return snapshotInfo;
}
}

0 comments on commit 0db26cb

Please sign in to comment.