未验证 提交 71b47110 编写于 作者: H HTHou

fix review

上级 c1472cb3
......@@ -574,15 +574,6 @@ public class TsFileProcessor {
}
}
/**
* Construct the a new or get an existing TsFileSequenceReader of a TsFile.
*
* @return a TsFileSequenceReader
*/
private TsFileSequenceReader getFileReader(TsFileResource tsFileResource) throws IOException {
return new TsFileSequenceReader(tsFileResource.getPath(), true);
}
public static File createNewVMFile(TsFileResource tsFileResource) {
File parent = tsFileResource.getFile().getParentFile();
return FSFactoryProducer.getFSFactory().getFile(parent,
......
......@@ -54,15 +54,6 @@ import org.apache.iotdb.tsfile.write.writer.RestorableTsFileIOWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.ExecutionException;
import static org.apache.iotdb.db.engine.storagegroup.TsFileResource.RESOURCE_SUFFIX;
/**
* TsFileRecoverPerformer recovers a SeqTsFile to correct status, redoes the WALs since last crash
......@@ -101,8 +92,9 @@ public class TsFileRecoverPerformer {
* 1. recover the TsFile by RestorableTsFileIOWriter and truncate the file to remaining corrected
* data 2. redo the WALs to recover unpersisted data 3. flush and close the file 4. clean WALs
*
* @return a RestorableTsFileIOWriter if the file is not closed before crush, so this writer can
* be used to continue writing
* @return a RestorableTsFileIOWriter and a list of RestorableTsFileIOWriter of vmfiles, if the
* file and the vmfiles are not closed before crush, so these writers can be used to continue
* writing
*/
public Pair<RestorableTsFileIOWriter, List<RestorableTsFileIOWriter>> recover()
throws StorageGroupProcessorException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册