Blame SOURCES/0031-autofs-disable-fast-reply.patch

bac598
From 34c519a4851194164befc150df8e768431e66405 Mon Sep 17 00:00:00 2001
bac598
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
bac598
Date: Tue, 22 Sep 2020 11:04:25 +0200
bac598
Subject: [PATCH 16/18] autofs: disable fast reply
bac598
bac598
If the backend is offline when autofs starts and reads auto.master map
bac598
we don't want to wait 60 seconds before the offline flag is reset. We
bac598
need to allow autofs to retry the call much sooner.
bac598
bac598
Resolves:
bac598
https://github.com/SSSD/sssd/issues/3413
bac598
bac598
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
bac598
---
bac598
 .../common/cache_req/plugins/cache_req_autofs_entry_by_name.c   | 2 +-
bac598
 .../common/cache_req/plugins/cache_req_autofs_map_by_name.c     | 2 +-
bac598
 .../common/cache_req/plugins/cache_req_autofs_map_entries.c     | 2 +-
bac598
 3 files changed, 3 insertions(+), 3 deletions(-)
bac598
bac598
diff --git a/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c b/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c
bac598
index 55c9fc8b0..cd2085187 100644
bac598
--- a/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c
bac598
+++ b/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c
bac598
@@ -84,7 +84,7 @@ cache_req_autofs_entry_by_name_dp_send(TALLOC_CTX *mem_ctx,
bac598
 
bac598
     return sbus_call_dp_autofs_GetEntry_send(mem_ctx, be_conn->conn,
bac598
                                              be_conn->bus_name, SSS_BUS_PATH,
bac598
-                                             DP_FAST_REPLY, data->name.name,
bac598
+                                             0, data->name.name,
bac598
                                              data->autofs_entry_name);
bac598
 }
bac598
 
bac598
diff --git a/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c b/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c
bac598
index 823eb3595..9d9bc3a97 100644
bac598
--- a/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c
bac598
+++ b/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c
bac598
@@ -81,7 +81,7 @@ cache_req_autofs_map_by_name_dp_send(TALLOC_CTX *mem_ctx,
bac598
 
bac598
     return sbus_call_dp_autofs_GetMap_send(mem_ctx, be_conn->conn,
bac598
                                            be_conn->bus_name, SSS_BUS_PATH,
bac598
-                                           DP_FAST_REPLY, data->name.name);
bac598
+                                           0, data->name.name);
bac598
 }
bac598
 
bac598
 bool
bac598
diff --git a/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c b/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c
bac598
index 3e47b1321..ee0156b6a 100644
bac598
--- a/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c
bac598
+++ b/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c
bac598
@@ -113,7 +113,7 @@ cache_req_autofs_map_entries_dp_send(TALLOC_CTX *mem_ctx,
bac598
 
bac598
     return sbus_call_dp_autofs_Enumerate_send(mem_ctx, be_conn->conn,
bac598
                                               be_conn->bus_name, SSS_BUS_PATH,
bac598
-                                              DP_FAST_REPLY, data->name.name);
bac598
+                                              0, data->name.name);
bac598
 }
bac598
 
bac598
 bool
bac598
-- 
bac598
2.21.3
bac598