1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3: Remove unused msg_flags from connections.tdb

This breaks rolling code upgrade!
This commit is contained in:
Volker Lendecke 2010-07-04 20:45:43 +02:00
parent b0c83d50f9
commit 23a31becac
4 changed files with 3 additions and 7 deletions

View File

@ -5356,8 +5356,7 @@ void msg_force_tdis(struct messaging_context *msg,
bool yield_connection(connection_struct *conn, const char *name);
int count_current_connections( const char *sharename, bool clear );
bool claim_connection(connection_struct *conn, const char *name,
uint32 msg_flags);
bool claim_connection(connection_struct *conn, const char *name);
/* The following definitions come from smbd/dfree.c */

View File

@ -841,7 +841,6 @@ struct connections_data {
char addr[24];
char machine[FSTRING_LEN];
time_t start;
uint32 bcast_msg_flags;
};

View File

@ -120,8 +120,7 @@ int count_current_connections( const char *sharename, bool clear )
Claim an entry in the connections database.
****************************************************************************/
bool claim_connection(connection_struct *conn, const char *name,
uint32 msg_flags)
bool claim_connection(connection_struct *conn, const char *name)
{
struct db_record *rec;
struct connections_data crec;
@ -148,7 +147,6 @@ bool claim_connection(connection_struct *conn, const char *name,
sizeof(crec.servicename));
}
crec.start = time(NULL);
crec.bcast_msg_flags = msg_flags;
strlcpy(crec.machine,get_remote_machine_name(),sizeof(crec.machine));
strlcpy(crec.addr,conn?conn->client_address:

View File

@ -864,7 +864,7 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn,
/*
* Get us an entry in the connections db
*/
if (!claim_connection(conn, lp_servicename(snum), 0)) {
if (!claim_connection(conn, lp_servicename(snum))) {
DEBUG(1, ("Could not store connections entry\n"));
*pstatus = NT_STATUS_INTERNAL_DB_ERROR;
goto err_root_exit;