Ack (for this flow). I have not done the same test for shared file system, i.e. simulate a mkdir failure!
Thanks, Mathi. -----Original Message----- From: Lennart Lund [mailto:[email protected]] Sent: Monday, January 27, 2014 9:34 PM To: Mathivanan Naickan Palanivelu Cc: [email protected] Subject: [PATCH 1 of 1] logsv: Fix updating of log root directory when check-pointing lgs config [#711] osaf/services/saf/logsv/lgs/lgs_imm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) Fix updating of lgs_cb when logRootDirectory is check pointed. diff --git a/osaf/services/saf/logsv/lgs/lgs_imm.c b/osaf/services/saf/logsv/lgs/lgs_imm.c --- a/osaf/services/saf/logsv/lgs/lgs_imm.c +++ b/osaf/services/saf/logsv/lgs/lgs_imm.c @@ -1128,7 +1128,7 @@ void logRootDirectory_filemove(const cha } /* Create new files at new path */ - strcpy((char *) lgs_cb->logsv_root_dir, new_logRootDirectory); + lgs_imm_rootpathconf_set(new_logRootDirectory); stream = log_stream_getnext_by_name(NULL); while (stream != NULL) { if (lgs_create_config_file_h(stream) != 0) { @@ -2074,6 +2074,7 @@ void lgs_imm_rootpathconf_set(const char osafassert(0); strcpy(lgs_conf->logRootDirectory, root_path_str); + strcpy((char *) lgs_cb->logsv_root_dir, root_path_str); LOG_NO("lgsv root path is changed to \"%s\"",lgs_conf->logRootDirectory); } ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
