mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-11 09:18:25 +03:00
mirror: fix monitoring change
Commit a8921be641
was supposedly a fix
for unwanted table reload - however before final commit, the tiny
change has been made that was believed to be an enhancment
of original prepared patch. Unfortunatelly the function
locking_is_clustered is not meant to be an equivalent test
of original function. Drop this change and using
original patch.
This commit is contained in:
parent
8623e33651
commit
d6bce03615
@ -2048,12 +2048,12 @@ int monitor_dev_for_events(struct cmd_context *cmd, const struct logical_volume
|
||||
} else
|
||||
continue;
|
||||
|
||||
if (!locking_is_clustered() && !vg_write_lock_held() && lv_is_mirror(lv)) {
|
||||
if (!cmd->is_clvmd && !vg_write_lock_held() && lv_is_mirror(lv)) {
|
||||
/*
|
||||
* Commands vgchange and lvchange do use read-only lock when changing
|
||||
* monitoring (--monitor y|n). All other use cases hold 'write-lock'
|
||||
* so they skip this dm mirror table refreshing step.
|
||||
* Shortcut can't be applied with clustered locking.
|
||||
* Shortcut is also not applied with clvmd.
|
||||
*/
|
||||
if (!_lv_activate_lv(lv, &mirr_laopts)) {
|
||||
stack;
|
||||
|
Loading…
Reference in New Issue
Block a user