1 Star 0 Fork 9

wangxiao65/infinispan

forked from src-openEuler/infinispan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lucene-6.patch 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
xuxijian 提交于 2020-03-09 22:24 . Package init
--- a/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/InfinispanIndexOutput.java.orig 2017-08-17 11:45:29.634976664 +0100
+++ b/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/InfinispanIndexOutput.java 2017-08-17 11:45:52.027718876 +0100
@@ -52,7 +52,8 @@
private int currentChunkNumber = 0;
public InfinispanIndexOutput(final AdvancedCache<FileCacheKey, FileMetadata> metadataCache, final AdvancedCache<ChunkCacheKey, Object> chunksCache, final FileCacheKey fileKey, final int bufferSize, final FileListOperations fileList,final int affinitySegmentId) {
- super("InfinispanIndexOutput{metadataCache=" + metadataCache + ", chunksCache=" + chunksCache + ", fileKey=" + fileKey + ", bufferSize=" + bufferSize + '}');
+ super("InfinispanIndexOutput{metadataCache=" + metadataCache + ", chunksCache=" + chunksCache + ", fileKey=" + fileKey + ", bufferSize=" + bufferSize + '}',
+ "InfinispanIndexOutput{metadataCache=" + metadataCache + ", chunksCache=" + chunksCache + ", fileKey=" + fileKey + ", bufferSize=" + bufferSize + '}');
this.metadataCache = metadataCache;
this.chunksCache = chunksCache;
this.affinitySegmentId = affinitySegmentId;
--- a/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/DirectoryLucene.java.orig 2017-08-17 11:51:02.271147311 +0100
+++ b/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/DirectoryLucene.java 2017-08-17 12:34:22.778145803 +0100
@@ -98,6 +98,14 @@
* {@inheritDoc}
*/
@Override
+ public IndexOutput createTempOutput(final String prefix, final String suffix, final IOContext context) throws IOException {
+ throw new IOException("Unsupported operation");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
public IndexInput openInput(final String name, final IOContext context) throws IOException {
final IndexInputContext indexInputContext = impl.openInput(name);
if (indexInputContext.readLocks == null) {
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangxiao65/infinispan.git
git@gitee.com:wangxiao65/infinispan.git
wangxiao65
infinispan
infinispan
master

搜索帮助