mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Only announce mirror monitoring to syslog after initialisation succeeds.
This commit is contained in:
parent
6ce24f679a
commit
241e84f79d
@ -243,8 +243,6 @@ int register_device(const char *device,
|
||||
|
||||
pthread_mutex_lock(&_register_mutex);
|
||||
|
||||
syslog(LOG_INFO, "Monitoring mirror device %s for events\n", device);
|
||||
|
||||
/*
|
||||
* Need some space for allocations. 1024 should be more
|
||||
* than enough for what we need (device mapper name splitting)
|
||||
@ -264,6 +262,8 @@ int register_device(const char *device,
|
||||
lvm2_run(_lvm_handle, "_memlock_inc");
|
||||
}
|
||||
|
||||
syslog(LOG_INFO, "Monitoring mirror device %s for events\n", device);
|
||||
|
||||
_register_count++;
|
||||
r = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user