better handling of fs gateway when sync to disk of the translog file

This commit is contained in:
kimchy 2010-03-31 15:39:50 +03:00
parent 1a698df69d
commit 0586bcd003

View File

@ -331,7 +331,7 @@ public class FsIndexShardGateway extends AbstractIndexShardComponent implements
}
}
private static long findLatestTranslogId(File location) {
private long findLatestTranslogId(File location) {
File[] files = location.listFiles(new FilenameFilter() {
@Override public boolean accept(File dir, String name) {
return name.startsWith("translog-");