Commit c5ddbc7
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: #5165
Reviewed By: mnorris11
Differential Revision: D103238014
Pulled By: trang-nm-nguyen
fbshipit-source-id: 5a972cc6b6611088f06e3388677e0cd10d9037c01 parent 66c9d08 commit c5ddbc7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments