Files
faiss/c_api
Binozo c5ddbc7104 c_api: fix IndexShards own_indices getter/setter name mismatch (#5165)
Summary:
`IndexShards_c.cpp` defines:

```cpp
DEFINE_GETTER(IndexShards, int, own_indices)
DEFINE_SETTER(IndexShards, int, own_indices)
```

while `IndexShards_c.h` defines
```cpp
FAISS_DECLARE_GETTER_SETTER(IndexShards, int, own_fields)
```

this mismatch causes neither `faiss_IndexShards_set_own_indices` and `faiss_IndexShards_set_own_fields` to be exported in the c_api. This patch completes the migration to `indices` instead of `fields` in the c_api.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5165

Reviewed By: mnorris11

Differential Revision: D103238014

Pulled By: trang-nm-nguyen

fbshipit-source-id: 5a972cc6b6611088f06e3388677e0cd10d9037c0
2026-04-30 14:16:29 -07:00
..
2025-03-30 20:11:39 -07:00