File tree Expand file tree Collapse file tree
store/src/main/java/org/apache/rocketmq/store Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ public void putMessagePositionInfoWrapper(DispatchRequest request) {
709709 this .messageStore .getMessageStoreConfig ().isEnableDLegerCommitLog ()) {
710710 this .messageStore .getStoreCheckpoint ().setPhysicMsgTimestamp (request .getStoreTimestamp ());
711711 }
712- this .messageStore .getStoreCheckpoint ().setLogicsMsgTempTimestamp (request .getStoreTimestamp ());
712+ this .messageStore .getStoreCheckpoint ().setTmpLogicsMsgTimestamp (request .getStoreTimestamp ());
713713 if (MultiDispatchUtils .checkMultiDispatchQueue (this .messageStore .getMessageStoreConfig (), request )) {
714714 multiDispatchLmqQueue (request , maxRetries );
715715 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public class StoreCheckpoint {
3333 private final RandomAccessFile randomAccessFile ;
3434 private final FileChannel fileChannel ;
3535 private final MappedByteBuffer mappedByteBuffer ;
36- private volatile long logicsMsgTempTimestamp = 0 ;
36+ private volatile long tmpLogicsMsgTimestamp = 0 ;
3737 private volatile long physicMsgTimestamp = 0 ;
3838 private volatile long logicsMsgTimestamp = 0 ;
3939 private volatile long indexMsgTimestamp = 0 ;
@@ -113,12 +113,12 @@ public void setLogicsMsgTimestamp(long logicsMsgTimestamp) {
113113 this .logicsMsgTimestamp = logicsMsgTimestamp ;
114114 }
115115
116- public long getLogicsMsgTempTimestamp () {
117- return logicsMsgTempTimestamp ;
116+ public long getTmpLogicsMsgTimestamp () {
117+ return tmpLogicsMsgTimestamp ;
118118 }
119119
120- public void setLogicsMsgTempTimestamp (long logicsMsgTempTimestamp ) {
121- this .logicsMsgTempTimestamp = logicsMsgTempTimestamp ;
120+ public void setTmpLogicsMsgTimestamp (long tmpLogicsMsgTimestamp ) {
121+ this .tmpLogicsMsgTimestamp = tmpLogicsMsgTimestamp ;
122122 }
123123
124124 public long getConfirmPhyOffset () {
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ public void putMessagePositionInfoWrapper(DispatchRequest request) {
536536 if (BrokerRole .SLAVE == this .messageStore .getMessageStoreConfig ().getBrokerRole ()) {
537537 this .messageStore .getStoreCheckpoint ().setPhysicMsgTimestamp (request .getStoreTimestamp ());
538538 }
539- this .messageStore .getStoreCheckpoint ().setLogicsMsgTempTimestamp (request .getStoreTimestamp ());
539+ this .messageStore .getStoreCheckpoint ().setTmpLogicsMsgTimestamp (request .getStoreTimestamp ());
540540 return ;
541541 } else {
542542 // XXX: warn and notify me
Original file line number Diff line number Diff line change @@ -648,7 +648,7 @@ private void doFlush(int retryTimes) {
648648 if (currentTimeMillis >= (this .lastFlushTimestamp + flushConsumeQueueThoroughInterval )) {
649649 this .lastFlushTimestamp = currentTimeMillis ;
650650 flushConsumeQueueLeastPages = 0 ;
651- logicsMsgTimestamp = messageStore .getStoreCheckpoint ().getLogicsMsgTempTimestamp ();
651+ logicsMsgTimestamp = messageStore .getStoreCheckpoint ().getTmpLogicsMsgTimestamp ();
652652 }
653653
654654 boolean flushOK = true ;
You can’t perform that action at this time.
0 commit comments