Commit ff521c1
committed
gw: preserve cached port_attrs on legacy CVM re-register
A re-registration from a legacy CVM carries port_attrs=None, which
previously wiped any value learned at an earlier registration or lazy
fetch. Gateway restart + CVM re-register would then force a redundant
Info() fetch. Keep cached attrs unless the caller actively reports new
ones; same instance_id implies same compose_hash, so the cache cannot
go stale.1 parent 87ce31c commit ff521c1
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
855 | 859 | | |
856 | 860 | | |
857 | 861 | | |
| |||
0 commit comments