You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/10/26 13:16:26 UTC

[doris-thirdparty] branch clucene updated: [Fix] return default version for MultiSegmentReader::getIndexVersion (#133)

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 <ai...@gmail.com>
AuthorDate: Thu Oct 26 21:16:20 2023 +0800

    [Fix] return default version for MultiSegmentReader::getIndexVersion (#133)
    
    Co-authored-by: airborne12 <ai...@gmail.com>
---
 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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org