diff options
author | Volker Lendecke <vl@samba.org> | 2017-11-05 12:02:26 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-12-05 00:56:12 +0100 |
commit | c9022d594b19051a5600d7e2955c3bd73a2988ea (patch) | |
tree | ad768a604041a148328c1d3a77454477fb4b2651 /source3 | |
parent | e8ac34d3f73b45702459af6ec878f156075520b2 (diff) | |
download | samba-c9022d594b19051a5600d7e2955c3bd73a2988ea.tar.gz |
net: Remove "net serverid wipe"
This used to be a hygiene command for clustered node startup. In
clustered mode, CLEAR_IF_FIRST does not work, records can stay alive
by means of recovery. serverid.tdb will soon die, so remove this
command.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_serverid.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/source3/utils/net_serverid.c b/source3/utils/net_serverid.c index 942f7a49024..0fc7a0118d2 100644 --- a/source3/utils/net_serverid.c +++ b/source3/utils/net_serverid.c @@ -46,31 +46,6 @@ static int net_serverid_list(struct net_context *c, int argc, return serverid_traverse_read(net_serverid_list_fn, NULL) ? 0 : -1; } -static int net_serverid_wipe_fn(struct db_record *rec, - const struct server_id *id, - uint32_t msg_flags, void *private_data) -{ - NTSTATUS status; - - if (!procid_is_local(id)) { - return 0; - } - status = dbwrap_record_delete(rec); - if (!NT_STATUS_IS_OK(status)) { - struct server_id_buf idbuf; - DEBUG(1, ("Could not delete serverid.tdb record %s: %s\n", - server_id_str_buf(*id, &idbuf), nt_errstr(status))); - } - return 0; -} - -static int net_serverid_wipe(struct net_context *c, int argc, - const char **argv) -{ - return serverid_traverse(net_serverid_wipe_fn, NULL) ? 0 : -1; -} - - struct wipedbs_record_marker { struct wipedbs_record_marker *prev, *next; TDB_DATA key, val; @@ -705,14 +680,6 @@ int net_serverid(struct net_context *c, int argc, const char **argv) " List all entries from serverid.tdb") }, { - "wipe", - net_serverid_wipe, - NET_TRANSPORT_LOCAL, - N_("Wipe the serverid.tdb for the current node"), - N_("net serverid wipe\n" - " Wipe the serverid.tdb for the current node") - }, - { "wipedbs", net_serverid_wipedbs, NET_TRANSPORT_LOCAL, |