Commit 2892e39
[dedup] Replace side-effect mutation with reduce in fuzzy dedup map (#3938)
_load_fuzzy_dupe_map_shard built a dict by mutating a closure variable
via .map() side effect, which only works with LocalClient (shared
memory).
Replace with .reduce() so the dict flows through the Zephyr pipeline as
a
proper return value. Also removes a stale comment from
_compute_fuzzy_dedup_stats.
Co-authored-by: Romain Yon <yonromai@users.noreply.github.com>1 parent c18c986 commit 2892e39
1 file changed
Lines changed: 9 additions & 11 deletions
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 58 | | |
66 | 59 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
70 | 68 | | |
71 | | - | |
| 69 | + | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| |||
0 commit comments