s3: Remove unused msg_flags from connections.tdb
authorVolker Lendecke <vl@samba.org>
Sun, 4 Jul 2010 18:45:43 +0000 (20:45 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 4 Jul 2010 19:49:03 +0000 (21:49 +0200)
This breaks rolling code upgrade!

source3/include/proto.h
source3/include/smb.h
source3/smbd/connection.c
source3/smbd/service.c

index 5f332ef53e7f93576cd029749c1a830b96e88c21..2d79aed03e88f9d7ab743d2cbbb4d8bf0a6afde8 100644 (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  */
 
index b042de927c668f36be47505c85063bf021f96401..140d81058290f321c8424efe826ea805bbaa3985 100644 (file)
@@ -841,7 +841,6 @@ struct connections_data {
        char addr[24];
        char machine[FSTRING_LEN];
        time_t start;
-       uint32 bcast_msg_flags;
 };
 
 
index fe1fcdbdb8fbb3a8e0210069ade4e49fda114bf2..e2d15f1ccde5e0ed36d89ee633858cd7e3d70be7 100644 (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:
index 472de24d8f3e7a5fe561707e7a9a336768cf5e37..e3f8ce6ed5460f70158edc0d006b33da11303f08 100644 (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;