-
Sebastien Gougeaud authored
To avoid concurency between multiple update commands (device and medium lock/unlock), the CLI requests a lock on the object before updating it. If other clients try to request the lock, they fail. Also fix the media tag update, where the modified data structure is retrieved before acquiring the lock. It now retrieves it again, for update, after acquiring the lock. Change-Id: I3fa9a17475d445e8ecffd848092a91a53f4f0980 Signed-off-by: Sebastien Gougeaud <sebastien.gougeaud@cea.fr> Reviewed-on: https://gerrit.ccc.ocre.cea.fr/gerrit/c/phobos/+/7089 Tested-by: Jenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr> Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr> Reviewed-by: Thomas Leibovici <thomas.leibovici@cea.fr>
5a0fc9bf