diff options
author | Gregor Beck <gbeck@sernet.de> | 2012-08-23 14:02:22 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-10-19 12:15:01 +0200 |
commit | 5a4ffb20ffe387fa5bb373778ba84d24a7e5b74f (patch) | |
tree | b5f73ed9a822fd9824d4c6f0510ee7524873a124 | |
parent | ac5c8909a94228cec47067188036f1c2a42378aa (diff) | |
download | samba-5a4ffb20ffe387fa5bb373778ba84d24a7e5b74f.tar.gz samba-5a4ffb20ffe387fa5bb373778ba84d24a7e5b74f.tar.xz samba-5a4ffb20ffe387fa5bb373778ba84d24a7e5b74f.zip |
s3:net_serverid: remove connections_forall from "net serverid wipedbs"
This tdb will go away.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/utils/net_serverid.c | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/source3/utils/net_serverid.c b/source3/utils/net_serverid.c index 2017d41e74..2d25ba777c 100644 --- a/source3/utils/net_serverid.c +++ b/source3/utils/net_serverid.c @@ -66,33 +66,10 @@ static int net_serverid_wipe(struct net_context *c, int argc, return serverid_traverse(net_serverid_wipe_fn, NULL) ? 0 : -1; } -static int net_serverid_wipedbs_conn( - struct db_record *rec, - const struct connections_key *key, - const struct connections_data *data, - void *private_data) -{ - if (!serverid_exists(&key->pid)) { - NTSTATUS status; - - DEBUG(10, ("Deleting connections.tdb record for pid %s\n", - server_id_str(talloc_tos(), &key->pid))); - - status = dbwrap_record_delete(rec); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("Could not delete connections.tdb record " - "for pid %s: %s\n", - server_id_str(talloc_tos(), &key->pid), - nt_errstr(status))); - } - } - return 0; -} - static int net_serverid_wipedbs(struct net_context *c, int argc, const char **argv) { - connections_forall(net_serverid_wipedbs_conn, NULL); + d_printf("TODO reimplement!\n"); return 0; } @@ -119,11 +96,9 @@ int net_serverid(struct net_context *c, int argc, const char **argv) "wipedbs", net_serverid_wipedbs, NET_TRANSPORT_LOCAL, - N_("Clean dead entries from connections.tdb and " - "sessionid.tdb"), + N_("Clean dead entries from temporary databases"), N_("net serverid wipedbs\n" - " Clean dead entries from connections.tdb and " - "sessionid.tdb") + " Clean dead entries from temporary databases") }, {NULL, NULL, 0, NULL, NULL} }; |