Fixed mirroring so only DB updates cause config changes.
Fixed mirroring so only DB updates cause config changes.

Moved the code block that checks the DB row to see if it's changed
so that it is the first thing that happens when configuring
the mirror sessions.  This way it won't re-attempt applying a
failing mirror configuration on each pass through even when
nothing had changed in the DB.

TG-1404

Change-Id: I1dd55828613bfd2b1d3da64506fea42d31b605da
Signed-off-by: jeff.mcmenomey <0e3ffb37ec65f3a85c6aa70326c6ba2a94b103ac@hpe.com>

open-switch/ops-switchd,open-switch/ops-switchd,open-switch/ops-switchd