Skip to content

Commit 4c38e5f

Browse files
committed
build bundles
1 parent e7a2430 commit 4c38e5f

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212717,6 +212717,11 @@ static void diskAnnNodeFree(DiskAnnNode *pNode){
212717212717
}
212718212718

212719212719
static int diskAnnSearchCtxInit(const DiskAnnIndex *pIndex, DiskAnnSearchCtx *pCtx, const Vector* pQuery, int maxCandidates, int topCandidates, int blobMode){
212720+
if( initVectorPair(pIndex->nNodeVectorType, pIndex->nEdgeVectorType, pIndex->nVectorDims, &pCtx->query) != 0 ){
212721+
return SQLITE_NOMEM_BKPT;
212722+
}
212723+
loadVectorPair(&pCtx->query, pQuery);
212724+
212720212725
pCtx->aDistances = sqlite3_malloc(maxCandidates * sizeof(double));
212721212726
pCtx->aCandidates = sqlite3_malloc(maxCandidates * sizeof(DiskAnnNode*));
212722212727
pCtx->nCandidates = 0;
@@ -212728,10 +212733,6 @@ static int diskAnnSearchCtxInit(const DiskAnnIndex *pIndex, DiskAnnSearchCtx *pC
212728212733
pCtx->visitedList = NULL;
212729212734
pCtx->nUnvisited = 0;
212730212735
pCtx->blobMode = blobMode;
212731-
if( initVectorPair(pIndex->nNodeVectorType, pIndex->nEdgeVectorType, pIndex->nVectorDims, &pCtx->query) != 0 ){
212732-
return SQLITE_NOMEM_BKPT;
212733-
}
212734-
loadVectorPair(&pCtx->query, pQuery);
212735212736

212736212737
if( pCtx->aDistances != NULL && pCtx->aCandidates != NULL && pCtx->aTopDistances != NULL && pCtx->aTopCandidates != NULL ){
212737212738
return SQLITE_OK;

libsql-ffi/bundled/src/sqlite3.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212717,6 +212717,11 @@ static void diskAnnNodeFree(DiskAnnNode *pNode){
212717212717
}
212718212718

212719212719
static int diskAnnSearchCtxInit(const DiskAnnIndex *pIndex, DiskAnnSearchCtx *pCtx, const Vector* pQuery, int maxCandidates, int topCandidates, int blobMode){
212720+
if( initVectorPair(pIndex->nNodeVectorType, pIndex->nEdgeVectorType, pIndex->nVectorDims, &pCtx->query) != 0 ){
212721+
return SQLITE_NOMEM_BKPT;
212722+
}
212723+
loadVectorPair(&pCtx->query, pQuery);
212724+
212720212725
pCtx->aDistances = sqlite3_malloc(maxCandidates * sizeof(double));
212721212726
pCtx->aCandidates = sqlite3_malloc(maxCandidates * sizeof(DiskAnnNode*));
212722212727
pCtx->nCandidates = 0;
@@ -212728,10 +212733,6 @@ static int diskAnnSearchCtxInit(const DiskAnnIndex *pIndex, DiskAnnSearchCtx *pC
212728212733
pCtx->visitedList = NULL;
212729212734
pCtx->nUnvisited = 0;
212730212735
pCtx->blobMode = blobMode;
212731-
if( initVectorPair(pIndex->nNodeVectorType, pIndex->nEdgeVectorType, pIndex->nVectorDims, &pCtx->query) != 0 ){
212732-
return SQLITE_NOMEM_BKPT;
212733-
}
212734-
loadVectorPair(&pCtx->query, pQuery);
212735212736

212736212737
if( pCtx->aDistances != NULL && pCtx->aCandidates != NULL && pCtx->aTopDistances != NULL && pCtx->aTopCandidates != NULL ){
212737212738
return SQLITE_OK;

0 commit comments

Comments
 (0)