Skip to content

Commit

Permalink
SAPHana: move local variable lastSrHook to set_SRHOOK_PRIM
Browse files Browse the repository at this point in the history
  • Loading branch information
fmherschel committed Dec 2, 2022
1 parent a11493b commit 488f7aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ra/SAPHana
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ function set_SRHOOK()
#
function set_SRHOOK_PRIM()
{
local lastSrHook
local lastRemSrHook
# to be backward compatible only set the site attribute, if the local or remote site attribute is already used (set) in the past
lastSrHook=$(get_SRHOOK_plain "$sr_name")
lastRemSrHook=$(get_SRHOOK_plain "$remSR_name")
Expand Down Expand Up @@ -2836,7 +2838,6 @@ function saphana_promote_clone() {
rc="$OCF_SUCCESS";
fi
fi
local lastSrHook
if [ $rc -eq $OCF_SUCCESS ]; then
set_SRHOOK_PRIM
fi
Expand Down

0 comments on commit 488f7aa

Please sign in to comment.