diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-04 20:40:46 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-04 21:49:03 +0200 |
commit | b0c83d50f9f609848c19180b6b032e73a1d504cb (patch) | |
tree | d1f07798d72e22e3b89a8c5d521844c5550b6017 /source3/smbd/connection.c | |
parent | 8cf1cd2d5c0469f170b0f81dda94a53ce8575af9 (diff) | |
download | samba-b0c83d50f9f609848c19180b6b032e73a1d504cb.tar.gz samba-b0c83d50f9f609848c19180b6b032e73a1d504cb.tar.xz samba-b0c83d50f9f609848c19180b6b032e73a1d504cb.zip |
s3: Replace register_message_flags() with serverid_register_msg_flags()
message_send_all is now done by walking the serverid.tdb, not the
connections.tdb anymore.
Günther, Simo, please check!
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r-- | source3/smbd/connection.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index e2b01d0579..fe1fcdbdb8 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -170,47 +170,3 @@ bool claim_connection(connection_struct *conn, const char *name, return True; } - -bool register_message_flags(bool doreg, uint32 msg_flags) -{ - struct db_record *rec; - struct connections_data *pcrec; - NTSTATUS status; - - DEBUG(10,("register_message_flags: %s flags 0x%x\n", - doreg ? "adding" : "removing", - (unsigned int)msg_flags )); - - if (!(rec = connections_fetch_entry(NULL, NULL, ""))) { - DEBUG(0, ("connections_fetch_entry failed\n")); - return False; - } - - if (rec->value.dsize != sizeof(struct connections_data)) { - DEBUG(0,("register_message_flags: Got wrong record size\n")); - TALLOC_FREE(rec); - return False; - } - - pcrec = (struct connections_data *)rec->value.dptr; - if (doreg) - pcrec->bcast_msg_flags |= msg_flags; - else - pcrec->bcast_msg_flags &= ~msg_flags; - - status = rec->store(rec, rec->value, TDB_REPLACE); - - if (!NT_STATUS_IS_OK(status)) { - DEBUG(0,("register_message_flags: tdb_store failed: %s.\n", - nt_errstr(status))); - TALLOC_FREE(rec); - return False; - } - - DEBUG(10,("register_message_flags: new flags 0x%x\n", - (unsigned int)pcrec->bcast_msg_flags )); - - TALLOC_FREE(rec); - - return True; -} |