mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
46e736973e
Cloning the ArcSwapOption (like the ArcSwap) does not act like a .clone() on an Arc, instead an entirely new ArcSwap is created with the same contents. To correctly share the ArcSwap needs to be placed inside an Arc. See: https://github.com/vorner/arc-swap/commit/2433d5719be341dc520a8bb93d9d3ce7f141a80d#diff-6c6d94533c44c19bd1416ef17bad1a878e63dca6e98d59181228fbe8f967c62bR6 Due to this being wrongly used ::clone() was removed from ArcSwap/ArcSwapOption in 1.0.0. Signed-off-by: Rob Bradford <robert.bradford@intel.com>