osaf/services/saf/logsv/lgs/lgs_amf.cc | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
immOiHandle was not reset when changing roles, so during si-swap there was possibility for Open API to get BAD_OPERATION. Need to reset the handle after IMM OI implementer is cleared. diff --git a/osaf/services/saf/logsv/lgs/lgs_amf.cc b/osaf/services/saf/logsv/lgs/lgs_amf.cc --- a/osaf/services/saf/logsv/lgs/lgs_amf.cc +++ b/osaf/services/saf/logsv/lgs/lgs_amf.cc @@ -166,6 +166,10 @@ static SaAisErrorT amf_quiesced_state_ha lgs_stop_gcfg_applier(); + // Reset immOiHandle, so all log open call will get TRY_AGAIN + // while si-swap is in transition. This code is added to fix [#2093]. + cb->immOiHandle = 0; + /* ** Change the MDS VDSET role to Quiesced. Wait for MDS callback with type ** MDS_CALLBACK_QUIESCED_ACK. Then change MBCSv role. Don't change ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel