Remove a global cache of calculating case sensivity. The calculation
is really simple: It only references a bool per-share parameter and a
global variable. I really doubt there is any measurable benefit from
this cache, and if there was, I don't care if SMB1 gets a tiny bit
slower in response to reduced global state.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
bool become_uid_done = false;
bool become_gid_done = false;
-connection_struct *last_conn = NULL;
-uint16_t last_flags = 0;
-
uint32_t global_client_caps = 0;
uint16_t fnf_handle = 257;
extern bool become_uid_done;
extern bool become_gid_done;
-extern connection_struct *last_conn;
-extern uint16_t last_flags;
-
extern uint32_t global_client_caps;
extern uint16_t fnf_handle;
snum = SNUM(conn);
- if ((conn == last_conn) && (last_flags == flags)) {
- return;
- }
-
- last_conn = conn;
- last_flags = flags;
-
/*
* Obey the client case sensitivity requests - only for clients that
* support it. */
conn->case_sensitive = false;
break;
}
- return;
}
/****************************************************************************