mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
Propagate diskann_node_write error in delete repair path
diskann_repair_reverse_edges() ignored the return code from diskann_node_write() when writing repaired neighbor lists after a node deletion. A failed write would leave the graph inconsistent with no error reported to the caller. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c4c23bd8ba
commit
c36a995f1e
1 changed files with 3 additions and 2 deletions
|
|
@ -1621,13 +1621,14 @@ static int diskann_repair_reverse_edges(
|
|||
break;
|
||||
}
|
||||
|
||||
diskann_node_write(p, vec_col_idx, nodeRowid,
|
||||
validity, vs, neighborIds, nis, qvecs, qs);
|
||||
rc = diskann_node_write(p, vec_col_idx, nodeRowid,
|
||||
validity, vs, neighborIds, nis, qvecs, qs);
|
||||
}
|
||||
|
||||
sqlite3_free(validity);
|
||||
sqlite3_free(neighborIds);
|
||||
sqlite3_free(qvecs);
|
||||
if (rc != SQLITE_OK) return rc;
|
||||
}
|
||||
|
||||
return SQLITE_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue