cxorm commented on a change in pull request #164: HDDS-426. Add field 
modificationTime for Volume and Bucket
URL: https://github.com/apache/hadoop-ozone/pull/164#discussion_r358728299
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/volume/OMVolumeCreateRequest.java
 ##########
 @@ -71,10 +71,12 @@ public OMRequest preExecute(OzoneManager ozoneManager) 
throws IOException {
     VolumeInfo volumeInfo  =
         getOmRequest().getCreateVolumeRequest().getVolumeInfo();
 
-    // Set creation time
+    // Set creationTime and modificationTime
     VolumeInfo updatedVolumeInfo =
-        volumeInfo.toBuilder().setCreationTime(Time.now()).build();
-
+        volumeInfo.toBuilder()
+        .setCreationTime(Time.now())
 
 Review comment:
   Thanks @bharatviswa504 for the comment.
   Fixed.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to