mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-27 01:22:10 +00:00
Revert config_verifyconf logic that is unnecessary
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1631 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
6c3ed50de0
commit
e4cfe7eb21
@ -38,7 +38,6 @@
|
||||
struct config_iface_ver0 {
|
||||
int (*config_readconfig) (struct objdb_iface_ver0 *objdb, char **error_string);
|
||||
int (*config_writeconfig) (struct objdb_iface_ver0 *objdb, char **error_string);
|
||||
int (*config_verifyconfig) (struct objdb_iface_ver0 *objdb, char **error_string);
|
||||
int (*config_reloadconfig) (struct objdb_iface_ver0 *objdb, int flush, char **error_string);
|
||||
};
|
||||
|
||||
|
11
exec/objdb.c
11
exec/objdb.c
@ -1424,17 +1424,6 @@ static int object_reload_config(int flush, char **error_string)
|
||||
|
||||
main_get_config_modules(&modules, &num_modules);
|
||||
|
||||
/* phase 1. Each module should verify that it can reload the config
|
||||
* and error out here if possible at all
|
||||
*/
|
||||
for (i=0; i<num_modules; i++) {
|
||||
if (modules[i]->config_verifyconfig) {
|
||||
res = modules[i]->config_verifyconfig(&objdb_iface, error_string);
|
||||
if (res)
|
||||
return res;
|
||||
}
|
||||
}
|
||||
/* phase 2. Do it.. */
|
||||
for (i=0; i<num_modules; i++) {
|
||||
if (modules[i]->config_reloadconfig) {
|
||||
res = modules[i]->config_reloadconfig(&objdb_iface, flush, error_string);
|
||||
|
Loading…
Reference in New Issue
Block a user