Blame SOURCES/bz1363902-SAPHanaSR-monitor-fix-tolower-error.patch
|
|
7a0b27 |
From 9eafa6e3dd9735bdd1e4e447d9e8c3d4da1e9c30 Mon Sep 17 00:00:00 2001
|
|
|
7a0b27 |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
7a0b27 |
Date: Thu, 27 Jun 2019 10:38:46 +0200
|
|
|
7a0b27 |
Subject: [PATCH] SAPHanaSR-monitor: fix tolower() issue, which seems to be an
|
|
|
7a0b27 |
artifact from a2p (Awk to Perl)
|
|
|
7a0b27 |
|
|
|
7a0b27 |
---
|
|
|
7a0b27 |
SAPHana/bin/SAPHanaSR-monitor | 2 +-
|
|
|
7a0b27 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
7a0b27 |
|
|
|
7a0b27 |
diff --git a/SAPHanaSR-ScaleOut-a77e8c6/SAPHana/bin/SAPHanaSR-monitor b/SAPHanaSR-ScaleOut-a77e8c6/SAPHana/bin/SAPHanaSR-monitor
|
|
|
7a0b27 |
index 737545c..da6bf08 100755
|
|
|
7a0b27 |
--- a/SAPHanaSR-ScaleOut-a77e8c6/SAPHana/bin/SAPHanaSR-monitor
|
|
|
7a0b27 |
+++ b/SAPHanaSR-ScaleOut-a77e8c6/SAPHana/bin/SAPHanaSR-monitor
|
|
|
7a0b27 |
@@ -219,7 +219,7 @@ sub processMonitor() {
|
|
|
7a0b27 |
#
|
|
|
7a0b27 |
$sid=$sids[0]; # currently ony one sid is supported
|
|
|
7a0b27 |
( $sid, $ino ) = split(":", $sid);
|
|
|
7a0b27 |
- $sid=tolower("$sid");
|
|
|
7a0b27 |
+ $sid=lc("$sid");
|
|
|
7a0b27 |
get_hana_attributes($sid, \%Host, \%HName, \%Global, \%GName, \%Site, \%SName);
|
|
|
7a0b27 |
if ( keys(%Host) == 0 ) {
|
|
|
7a0b27 |
printf "No attributes found for SID=%s\n", $sid;
|