mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
better handling of fs gateway when sync to disk of the translog file
This commit is contained in:
parent
1a698df69d
commit
0586bcd003
@ -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-");
|
||||
|
Loading…
x
Reference in New Issue
Block a user