From f8bfc79f132ab86e7cb264f40693acf21faa9aff Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Fri, 22 Mar 2019 15:27:03 +0100 Subject: [PATCH] Fix env --- configobject/configsync/configsync.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configobject/configsync/configsync.go b/configobject/configsync/configsync.go index 5189277e..a610634c 100644 --- a/configobject/configsync/configsync.go +++ b/configobject/configsync/configsync.go @@ -35,8 +35,8 @@ type Checksums struct { // connection information and other control mechanisms, a channel chHA, which informs the Operator of the current HA // state, and a Context reference ctx defining the type and providing the necessary factories. func Operator(super *supervisor.Supervisor, chHA chan int, ctx *Context) error { - insert, update, delete := GetDelta(super, ctx) - log.Infof("%s - Delta: (Insert: %d, Maybe Update: %d, Delete: %d)", ctx.ObjectType, len(insert), len(update), len(delete)) + //insert, update, delete := GetDelta(super, ctx) + //log.Infof("%s - Delta: (Insert: %d, Maybe Update: %d, Delete: %d)", ctx.ObjectType, len(insert), len(update), len(delete)) var ( // If this IcingaDB-Instance looses responsibility, this channel will be @@ -78,7 +78,7 @@ func Operator(super *supervisor.Supervisor, chHA chan int, ctx *Context) error { log.Infof("%s: Got responsibility", ctx.ObjectType) //TODO: This should only be done, if HA was taken over from another instance - insert, update, delete = GetDelta(super, ctx) + insert, update, delete := GetDelta(super, ctx) log.Infof("%s - Delta: (Insert: %d, Maybe Update: %d, Delete: %d)", ctx.ObjectType, len(insert), len(update), len(delete)) // Clean up all channels and wait groups for a fresh config dump