[Linux-ha-dev] Re: [Linux-ha-cvs] Linux-HA CVS: lib by sunjd from
Sun Jiang Dong
hasjd at cn.ibm.com
Tue Sep 14 02:02:27 MDT 2004
When try to get the meta-data, there may be no resource instance
running. The check in ocf-shellfuncs should take this special situation
into account.
linux-ha-cvs at lists.community.tummy.com wrote:
> linux-ha CVS committal
>
> Author : sunjd
> Host :
> Project : linux-ha
> Module : lib
>
> Dir : linux-ha/lib/plugins/lrm
>
>
> Modified Files:
> raexecocf.c
>
>
> Log Message:
> export a dummy value for the evironment variable OCF_RESOURCE_INSTANCE when try to get metadata
>
> ===================================================================
> RCS file: /home/cvs/linux-ha/linux-ha/lib/plugins/lrm/raexecocf.c,v
> retrieving revision 1.31
> retrieving revision 1.32
> diff -u -3 -r1.31 -r1.32
> --- raexecocf.c 13 Sep 2004 10:45:41 -0000 1.31
> +++ raexecocf.c 14 Sep 2004 06:42:13 -0000 1.32
> @@ -307,7 +307,7 @@
> strncat(ra_pathname, " meta-data",RA_MAX_NAME_LENGTH);
>
> tmp_for_setenv = g_hash_table_new(g_str_hash, g_str_equal);
> - add_OCF_env_vars(tmp_for_setenv, NULL, rsc_type, provider);
> + add_OCF_env_vars(tmp_for_setenv, "DUMMY_INSTANCE", rsc_type, provider);
> raexec_setenv(tmp_for_setenv);
> g_hash_table_foreach_remove(tmp_for_setenv, let_remove_eachitem, NULL);
> g_hash_table_destroy(tmp_for_setenv);
>
>
> _______________________________________________
> Linux-ha-cvs mailing list
> Linux-ha-cvs at lists.community.tummy.com
> http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
>
--
BRs,
Sun Jiang Dong
More information about the Linux-HA-Dev
mailing list