Blame SOURCES/SAPHanaSR-monitor-fix-tolower-error.patch

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