Commit 78a3920
authored
[fix](be) Reuse segment magic constants in meta tool (#66897)
PR #66789 centralized the segment footer magic constants in
`storage/segment/common.h`, but `meta_tool.cpp` still declared the same
names locally in its segment read and write paths. When
`BUILD_META_TOOL=ON`, Clang reports four `-Wshadow` diagnostics and the
ASAN build fails because warnings are treated as errors.
This change includes the defining header explicitly and reuses
`doris::segment_v2::k_segment_magic` and `k_segment_magic_length` in
both paths.1 parent 36d2e85 commit 78a3920
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | | - | |
292 | | - | |
293 | | - | |
| 292 | + | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
| 1037 | + | |
| 1038 | + | |
1040 | 1039 | | |
1041 | 1040 | | |
1042 | 1041 | | |
| |||
0 commit comments