better method name
This commit is contained in:
parent
98e93322ae
commit
811856e1f8
|
@ -115,6 +115,7 @@
|
||||||
<w>tuple</w>
|
<w>tuple</w>
|
||||||
<w>unboxed</w>
|
<w>unboxed</w>
|
||||||
<w>unicast</w>
|
<w>unicast</w>
|
||||||
|
<w>unmanaged</w>
|
||||||
<w>unregister</w>
|
<w>unregister</w>
|
||||||
<w>uptime</w>
|
<w>uptime</w>
|
||||||
<w>uuid</w>
|
<w>uuid</w>
|
||||||
|
|
|
@ -74,7 +74,7 @@ public abstract class FsIndexStore extends AbstractIndexComponent implements Ind
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File shardLocation(ShardId shardId) {
|
public File shardIndexLocation(ShardId shardId) {
|
||||||
return new File(new File(location, Integer.toString(shardId.id())), "index");
|
return new File(new File(location, Integer.toString(shardId.id())), "index");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class MmapFsStore extends FsStore<Directory> {
|
||||||
// by default, we don't need to sync to disk, since we use the gateway
|
// by default, we don't need to sync to disk, since we use the gateway
|
||||||
this.syncToDisk = componentSettings.getAsBoolean("sync_to_disk", false);
|
this.syncToDisk = componentSettings.getAsBoolean("sync_to_disk", false);
|
||||||
LockFactory lockFactory = buildLockFactory();
|
LockFactory lockFactory = buildLockFactory();
|
||||||
File location = ((FsIndexStore) indexStore).shardLocation(shardId);
|
File location = ((FsIndexStore) indexStore).shardIndexLocation(shardId);
|
||||||
location.mkdirs();
|
location.mkdirs();
|
||||||
this.fsDirectory = new CustomMMapDirectory(location, lockFactory, syncToDisk);
|
this.fsDirectory = new CustomMMapDirectory(location, lockFactory, syncToDisk);
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class NioFsStore extends FsStore<Directory> {
|
||||||
// by default, we don't need to sync to disk, since we use the gateway
|
// by default, we don't need to sync to disk, since we use the gateway
|
||||||
this.syncToDisk = componentSettings.getAsBoolean("sync_to_disk", false);
|
this.syncToDisk = componentSettings.getAsBoolean("sync_to_disk", false);
|
||||||
LockFactory lockFactory = buildLockFactory();
|
LockFactory lockFactory = buildLockFactory();
|
||||||
File location = ((FsIndexStore) indexStore).shardLocation(shardId);
|
File location = ((FsIndexStore) indexStore).shardIndexLocation(shardId);
|
||||||
location.mkdirs();
|
location.mkdirs();
|
||||||
this.fsDirectory = new CustomNioFSDirectory(location, lockFactory, syncToDisk);
|
this.fsDirectory = new CustomNioFSDirectory(location, lockFactory, syncToDisk);
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class SimpleFsStore extends FsStore<Directory> {
|
||||||
// by default, we don't need to sync to disk, since we use the gateway
|
// by default, we don't need to sync to disk, since we use the gateway
|
||||||
this.syncToDisk = componentSettings.getAsBoolean("sync_to_disk", false);
|
this.syncToDisk = componentSettings.getAsBoolean("sync_to_disk", false);
|
||||||
LockFactory lockFactory = buildLockFactory();
|
LockFactory lockFactory = buildLockFactory();
|
||||||
File location = ((FsIndexStore) indexStore).shardLocation(shardId);
|
File location = ((FsIndexStore) indexStore).shardIndexLocation(shardId);
|
||||||
location.mkdirs();
|
location.mkdirs();
|
||||||
this.fsDirectory = new CustomSimpleFSDirectory(location, lockFactory, syncToDisk);
|
this.fsDirectory = new CustomSimpleFSDirectory(location, lockFactory, syncToDisk);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue