mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
snapshot: do not spawn when origin is not active
Since the code is not doing anything when origin is not active, avoid spawning polling thread.
This commit is contained in:
parent
c46d4a745d
commit
15e7066fe3
@ -1455,7 +1455,7 @@ int lv_refresh(struct cmd_context *cmd, struct logical_volume *lv)
|
||||
* - fortunately: polldaemon will immediately shutdown if the
|
||||
* origin doesn't have a status with a snapshot percentage
|
||||
*/
|
||||
if (background_polling() && lv_is_merging_origin(lv))
|
||||
if (background_polling() && lv_is_merging_origin(lv) && lv_is_active_locally(lv))
|
||||
lv_spawn_background_polling(cmd, lv);
|
||||
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user