summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-08-23 14:02:22 +0200
committerMichael Adam <obnox@samba.org>2012-10-19 12:15:01 +0200
commit2f2cb2f6894c94f375310661e7c40c167a784eda (patch)
tree3f6d92b2aa717b87fa1bb459aecfaa3495809500
parentdbff58228e5d05d9799322973aee950951d23fb8 (diff)
downloadsamba-2f2cb2f6894c94f375310661e7c40c167a784eda.tar.gz
samba-2f2cb2f6894c94f375310661e7c40c167a784eda.tar.bz2
samba-2f2cb2f6894c94f375310661e7c40c167a784eda.zip
s3:net_serverid: remove sessionid_traverse 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.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/utils/net_serverid.c b/source3/utils/net_serverid.c
index 79be5477c5..2017d41e74 100644
--- a/source3/utils/net_serverid.c
+++ b/source3/utils/net_serverid.c
@@ -89,33 +89,10 @@ static int net_serverid_wipedbs_conn(
return 0;
}
-static int net_serverid_wipedbs_sessionid(struct db_record *rec,
- const char *key,
- struct sessionid *session,
- void *private_data)
-{
- if (!serverid_exists(&session->pid)) {
- NTSTATUS status;
-
- DEBUG(10, ("Deleting sessionid.tdb record for pid %s\n",
- server_id_str(talloc_tos(), &session->pid)));
-
- status = dbwrap_record_delete(rec);
- if (!NT_STATUS_IS_OK(status)) {
- DEBUG(1, ("Could not delete session.tdb record "
- "for pid %s: %s\n",
- server_id_str(talloc_tos(), &session->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);
- sessionid_traverse(net_serverid_wipedbs_sessionid, NULL);
return 0;
}