Vladsz83 commented on a change in pull request #9269:
URL: https://github.com/apache/ignite/pull/9269#discussion_r687837831
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/EncryptedFileIO.java
##########
@@ -179,10 +179,14 @@
/** {@inheritDoc} */
@Override public int write(ByteBuffer srcBuf) throws IOException {
- assert position() == 0;
- assert headerSize == srcBuf.capacity();
+ if (headerSize > 0) {
Review comment:
I suggest renaming to `plainHeader` with some comment that isn't
encrypted.
--
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]