shoule be VectorIndexSize

This commit is contained in:
lion 2022-11-18 08:33:37 +08:00
parent 52d25ef0ef
commit fe0605224e
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public class Searcher {
public static byte[] loadVectorIndex(RandomAccessFile handle) throws IOException { public static byte[] loadVectorIndex(RandomAccessFile handle) throws IOException {
handle.seek(HeaderInfoLength); handle.seek(HeaderInfoLength);
int len = VectorIndexRows * VectorIndexCols * SegmentIndexSize; int len = VectorIndexRows * VectorIndexCols * VectorIndexSize;
final byte[] buff = new byte[len]; final byte[] buff = new byte[len];
int rLen = handle.read(buff); int rLen = handle.read(buff);
if (rLen != len) { if (rLen != len) {