swamirishi commented on code in PR #9552:
URL: https://github.com/apache/ozone/pull/9552#discussion_r2652700658


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBBatchOperation.java:
##########
@@ -136,15 +137,29 @@ public void close() {
   }
 
   private abstract static class Op implements Closeable {
+    private final CodecBuffer keyBuffer;
     private final Bytes keyBytes;
+    private final AtomicBoolean closed = new AtomicBoolean(false);
+
+    private Op(CodecBuffer keyBuffer) {
+      this.keyBuffer = keyBuffer;
+      this.keyBytes = keyBuffer == null ? null : Bytes.newBytes(keyBuffer);

Review Comment:
   I am still keeping the Bytes.newBytes() since we still need to support byte 
array operations for delete range



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