Files
sijie-ni-0214andGitHub f6c38bbb76 fix: avoid structured binding capture in OpenMP lambdas (#51302)
## Summary

Avoid direct captures of structured bindings in
`ChunkedSegmentSealedImpl.cpp`, which is compiled with OpenMP enabled.

- Use an init-capture for the field ID in `LoadBatchTextIndexes`.
- Use an init-capture for the field ID in `FinalizeLoadDiffForReopen`
when dropping JSON indexes.
- Keep the inner text-index commit lambda as a normal value capture
because it captures the ordinary init-capture from the outer lambda, not
a structured binding.

issue: #51231

## Test Plan

- [x] `make`
- [x] `ninja -C cmake_build
src/segcore/CMakeFiles/milvus_segcore.dir/ChunkedSegmentSealedImpl.cpp.o`
- [x] `git diff --check`

Signed-off-by: sijie-ni-0214 <sijie.ni@zilliz.com>
2026-07-20 14:38:43 +08:00
..