hanishakoneru commented on a change in pull request #428: HDDS-2868. Add
ObjectID and UpdateID to OMKeyInfo.
URL: https://github.com/apache/hadoop-ozone/pull/428#discussion_r366544023
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyRenameRequest.java
##########
@@ -155,6 +156,9 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager,
//Set modification time
fromKeyValue.setModificationTime(renameKeyArgs.getModificationTime());
+ // Set the UpdateID to current transactionLogIndex
+ fromKeyValue.setUpdateID(transactionLogIndex);
Review comment:
I think either way should be ok. I thought since its the same key being
renamed, we could have the same objectID. But I am ok changing it to current
transactionLogIndex. Let me know what you think.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]