dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0004-FO-Set-port-to-NOT_WORKING-when-trying-a-next-server.patch

b2d430
From 95939e9831fb3d9a8f464ecff3377dd6027e0321 Mon Sep 17 00:00:00 2001
b2d430
From: Jakub Hrozek <jhrozek@redhat.com>
b2d430
Date: Tue, 10 May 2016 14:11:36 +0200
b2d430
Subject: [PATCH 04/18] FO: Set port to NOT_WORKING when trying a next server
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
Resolves: https://fedorahosted.org/sssd/ticket/3009
b2d430
b2d430
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
b2d430
(cherry picked from commit c420ce830ac0b0b288a2a887ec2cfce5c748018c)
b2d430
---
b2d430
 src/providers/fail_over.c | 2 +-
b2d430
 1 file changed, 1 insertion(+), 1 deletion(-)
b2d430
b2d430
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
b2d430
index e945c9924597c7addeeb11090e1c1aee5596cb71..1d88d2aa54bfdebd4b648e2b13fa8d03e2be3973 100644
b2d430
--- a/src/providers/fail_over.c
b2d430
+++ b/src/providers/fail_over.c
b2d430
@@ -1546,7 +1546,7 @@ void fo_try_next_server(struct fo_service *service)
b2d430
     service->active_server = 0;
b2d430
 
b2d430
     if (server->port_status == PORT_WORKING) {
b2d430
-        server->port_status = PORT_NEUTRAL;
b2d430
+        server->port_status = PORT_NOT_WORKING;
b2d430
     }
b2d430
 }
b2d430
 
b2d430
-- 
b2d430
2.4.11
b2d430