jacek-lewandowski commented on code in PR #2064:
URL: https://github.com/apache/cassandra/pull/2064#discussion_r1090239538


##########
src/java/org/apache/cassandra/io/util/MmappedRegions.java:
##########
@@ -140,6 +147,25 @@ public void extend(long length)
         copy = new State(state);
     }
 
+    public void extend(CompressionMetadata compressionMetadata)
+    {
+        assert !isCopy() : "Copies cannot be extended";
+
+        if (compressionMetadata.dataLength <= state.length)

Review Comment:
   I'll add a comment



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