"Fossies" - the Fresh Open Source Software Archive

Member "ipfire-2.x-2.27-core174/src/patches/collectd/0002-Don-t-notify-continuously-when-MySQL-slave-SQL-threa.patch" (7 Apr 2023, 789 Bytes) of package /linux/misc/ipfire-2.x-2.27-core174.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From f2391b9da6127e4acd5b54b7ae6c2d585df0e2a0 Mon Sep 17 00:00:00 2001
    2 From: =?UTF-8?q?Joaqu=C3=ADn=20Cuenca=20Abela?= <e98cuenc@gmail.com>
    3 Date: Wed, 29 May 2013 16:22:09 +0200
    4 Subject: [PATCH 02/22] Don't notify continuously when MySQL slave SQL thread
    5  is running
    6 
    7 Signed-off-by: Florian Forster <octo@collectd.org>
    8 ---
    9  src/mysql.c | 2 +-
   10  1 file changed, 1 insertion(+), 1 deletion(-)
   11 
   12 diff --git a/src/mysql.c b/src/mysql.c
   13 index 8b3cd21..f93a442 100644
   14 --- a/src/mysql.c
   15 +++ b/src/mysql.c
   16 @@ -689,7 +689,7 @@ static int mysql_read_slave_stats (mysql_database_t *db, MYSQL *con)
   17             ssnprintf (n.message, sizeof (n.message),
   18                     "slave SQL thread started");
   19             plugin_dispatch_notification (&n);
   20 -           db->slave_sql_running = 0;
   21 +           db->slave_sql_running = 1;
   22         }
   23     }
   24  
   25 -- 
   26 1.9.3
   27