aswinshakil commented on code in PR #4811:
URL: https://github.com/apache/ozone/pull/4811#discussion_r1232891688
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/key/OMKeyPurgeResponse.java:
##########
@@ -69,6 +77,22 @@ public void addToDBBatch(OMMetadataManager omMetadataManager,
}
} else {
processKeys(batchOperation, omMetadataManager);
+ processKeysToUpdate(batchOperation, omMetadataManager);
+ }
+ }
+
+ private void processKeysToUpdate(BatchOperation batchOp,
+ OMMetadataManager metadataManager) throws IOException {
+ if (keysToUpdateList == null) {
+ return;
+ }
+
+ for (SnapshotMoveKeyInfos keyToUpdate : keysToUpdateList) {
+ List<KeyInfo> keyInfosList = keyToUpdate.getKeyInfosList();
+ RepeatedOmKeyInfo repeatedOmKeyInfo =
+ createRepeatedOmKeyInfo(keyInfosList);
+ metadataManager.getDeletedTable().putWithBatch(batchOp,
Review Comment:
If all versions are reclaimable they are never put it `keysToModify`, they
will be deleted by the `KeyDeletingService` itself. It won't even come here.
--
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]