Skip to content

Commit e4df46f

Browse files
author
guyinyou
committed
rename to tmpLogicsMsgTimestamp
Change-Id: Ia65ca06751f765bdc2bf053c58e08789f4b2fb22
1 parent 22ef97a commit e4df46f

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

store/src/main/java/org/apache/rocketmq/store/ConsumeQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

store/src/main/java/org/apache/rocketmq/store/StoreCheckpoint.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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() {

store/src/main/java/org/apache/rocketmq/store/queue/BatchConsumeQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

store/src/main/java/org/apache/rocketmq/store/queue/ConsumeQueueStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)