Commit 930adb3
committed
Fix policy override, Bootstrap deadlock, duplicate history samples
- registry.Client.SetNetworkPolicy: build message from copy of policy map so
caller keys cannot override type/network_id/admin_token fields
- daemon.ManagedEngine.Bootstrap: release me.mu before calling persist (which
takes RLock on same mutex) to avoid deadlock
- registry.Server.recordSample: bucket samples by hour/day timestamp so
restarts within the same bucket overwrite rather than duplicate entries1 parent 36563b7 commit 930adb3
4 files changed
Lines changed: 779 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | 119 | | |
122 | 120 | | |
123 | 121 | | |
| |||
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
| 703 | + | |
707 | 704 | | |
708 | 705 | | |
709 | 706 | | |
| 707 | + | |
| 708 | + | |
710 | 709 | | |
711 | 710 | | |
712 | 711 | | |
| |||
0 commit comments