Commit 098546a
committed
CA-390025: do not override SR's client-set metadata on update
Some plugins may not store the client-set metadata, and return a static value
when replying to the update. This would override the values that a client
used when the SR was created, or set afterwards, which is unexpected.
Now name_label and name_description fields returned by the plugins are ignored
on update.
Current set_name_label and set_name_description rely on the update mechanism to
work. Instead add database call at the end of the methods to ensure both xapi
and the SR backend are synchronized, even when the latter fails to update the
values.
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>1 parent 21b56b4 commit 098546a
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | 578 | | |
582 | 579 | | |
583 | 580 | | |
| |||
846 | 843 | | |
847 | 844 | | |
848 | 845 | | |
849 | | - | |
| 846 | + | |
850 | 847 | | |
851 | 848 | | |
852 | 849 | | |
| |||
860 | 857 | | |
861 | 858 | | |
862 | 859 | | |
863 | | - | |
| 860 | + | |
864 | 861 | | |
865 | 862 | | |
866 | 863 | | |
| |||
0 commit comments