This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch clucene
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/clucene by this push:
new 12bac905 [Fix] return default version for
MultiSegmentReader::getIndexVersion (#133)
12bac905 is described below
commit 12bac905dfc5876d46dbd5df886a90c5e9b48451
Author: airborne12 <[email protected]>
AuthorDate: Thu Oct 26 21:16:20 2023 +0800
[Fix] return default version for MultiSegmentReader::getIndexVersion (#133)
Co-authored-by: airborne12 <[email protected]>
---
src/core/CLucene/index/MultiSegmentReader.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/CLucene/index/MultiSegmentReader.cpp
b/src/core/CLucene/index/MultiSegmentReader.cpp
index e093cd61..ef006c20 100644
--- a/src/core/CLucene/index/MultiSegmentReader.cpp
+++ b/src/core/CLucene/index/MultiSegmentReader.cpp
@@ -489,7 +489,7 @@ IndexVersion MultiSegmentReader::getIndexVersion() {
for (size_t i = 0; i < subReaders->length; i++) {
return (*subReaders)[i]->getIndexVersion();
}
- _CLTHROWA(CL_ERR_IllegalState, "MultiSegmentReader::getIndexVersion
index open failed.");
+ return IndexVersion::kV0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]