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

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