congqixia f6f0f34372
enhance: use StorageV3 to mark loon manifest segment info (#46976)
Related to #44956

Introduce StorageV3 constant to distinguish loon manifest format from
StorageV2 packed writer format. When UseLoonFFI is enabled, segments are
now marked with StorageVersion=3 instead of 2.

The V3 format currently shares most V2 logic paths since the underlying
storage format is similar. In a future refactor, V3-specific logic will
be separated from the V2 code path for better readability.

Changes:
- Add StorageV3 constant (value=3) in Go and C++ code
- Set StorageVersion=3 when UseLoonFFI is enabled for:
- Compaction params
- Import segments allocation
- Write buffer growing segments
- Streaming node segment allocation
- Add V3 support to existing V2 code paths (read/write/sync)
- Separate V2 and V3 writer creation in NewBinlogRecordWriter

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2026-01-12 16:51:27 +08:00
..
2023-04-11 14:42:30 +08:00
2025-12-31 15:35:21 +08:00