Skip to content

Commit e758265

Browse files
committed
Fix fast last empty cache handling in 1.3
1 parent 8657782 commit e758265

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,8 @@ public TSExecuteStatementResp executeFastLastDataQueryForOneDeviceV2(
10081008
if (timeValuePair == null) {
10091009
allCached = false;
10101010
break;
1011-
} else if (timeValuePair.getValue() == null) {
1011+
} else if (timeValuePair == DeviceLastCache.EMPTY_TIME_VALUE_PAIR
1012+
|| timeValuePair.getValue() == null) {
10121013
// there is no data for this sensor
10131014
if (!canUseNullEntry) {
10141015
allCached = false;

0 commit comments

Comments
 (0)