liuzongliang0202 commented on issue #4463:
URL: https://github.com/apache/rocketmq/issues/4463#issuecomment-1156427697

   i think ,This can be modified like as follows
    
   `
   // class  IndexService
    public void shutdown() {
           if (!indexFileList.isEmpty()) {
               final IndexFile indexFile = 
indexFileList.get(indexFileList.size() - 1);
               long indexMsgTimestamp = indexFile.getEndTimestamp();
               indexFile.flush();
               
this.defaultMessageStore.getStoreCheckpoint().setIndexMsgTimestamp(indexMsgTimestamp);
           }
       }
   `


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

Reply via email to