Skip to content

Commit 0d64d51

Browse files
committed
Fix compile error
1 parent 5e29706 commit 0d64d51

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/MultiTsFileDeviceIterator.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public MultiTsFileDeviceIterator(
175175
}
176176
}
177177

178-
public boolean hasNextDevice() {
178+
public boolean hasNextDevice() throws IOException {
179179
boolean hasNext = false;
180180
for (TsFileDeviceIterator iterator : deviceIteratorMap.values()) {
181181
hasNext =
@@ -196,7 +196,7 @@ public boolean hasNextDevice() {
196196
* @return Pair of device full path and whether this device is aligned
197197
*/
198198
@SuppressWarnings({"squid:S135", "java:S2259"})
199-
public Pair<IDeviceID, Boolean> nextDevice() throws IllegalPathException {
199+
public Pair<IDeviceID, Boolean> nextDevice() throws IllegalPathException, IOException {
200200
List<TsFileResource> toBeRemovedResources = new LinkedList<>();
201201
Pair<IDeviceID, Boolean> minDevice = null;
202202
// get the device from source files sorted from the newest to the oldest by version
@@ -275,7 +275,8 @@ public Map<String, MeasurementSchema> getAllSchemasOfCurrentDevice() throws IOEx
275275
timeseriesMetadataList,
276276
deviceIteratorMap.get(resource).getFirstMeasurementNodeOfCurrentDevice(),
277277
schemaMap.keySet(),
278-
true);
278+
true,
279+
null);
279280
for (TimeseriesMetadata timeseriesMetadata : timeseriesMetadataList) {
280281
if (!schemaMap.containsKey(timeseriesMetadata.getMeasurementId())
281282
&& !timeseriesMetadata.getChunkMetadataList().isEmpty()) {

0 commit comments

Comments
 (0)