You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/02/17 09:52:54 UTC

[GitHub] [rocketmq] RongtongJin commented on issue #1777: Question about org.apache.rocketmq.store.MappedFile#destroy

RongtongJin commented on issue #1777: Question about org.apache.rocketmq.store.MappedFile#destroy
URL: https://github.com/apache/rocketmq/issues/1777#issuecomment-586907738
 
 
   It is not necessary to return writeBuffer. MappedFile reepresents the file on disk , writeBuffer in TransientStorePool is direct buffer to temporary writing, when all the content in writeBuffer commit to file, the writterBuffer will be returned (org.apache.rocketmq.store.MappedFile#commit). So when MappedFile is destroyed, the writeBuffer should already be returned.

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


With regards,
Apache Git Services