Remove -rebuildDB flag to ptserver

The -rebuildDB flag was documented to rebuild the Protection Database at
startup, but it was accepted and ignored in the ptserver source, doing
nothing.  Remove the documentation and the option recognition in ptserver.

Change-Id: I36f30f38464b602cb4739a958663a6feb5fe27bf
Reviewed-on: http://gerrit.openafs.org/2029
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Russ Allbery 2010-05-26 11:28:57 -05:00 committed by Derrick Brashear
parent 46192481ec
commit 1f22cab96a
2 changed files with 2 additions and 10 deletions

View File

@ -8,7 +8,7 @@ ptserver - Initializes the Protection Server
<div class="synopsis">
B<ptserver> S<<< [B<-database> | B<-db> <I<db path>>] >>> S<<< [B<-p> <I<number of threads>>] >>> S<<< [B<-d> <I<debug level>>] >>>
[B<-rebuildDB>] S<<< [B<-groupdepth> <I<# of nested groups>>] >>>
S<<< [B<-groupdepth> <I<# of nested groups>>] >>>
S<<< [B<-default_access> <I<user access mask>> <I<group access mask>>] >>>
[B<-restricted>] [B<-enable_peer_stats>]
[B<-enable_process_stats>] [B<-allow-dotted-principals>]
@ -90,12 +90,6 @@ Sets the number of server lightweight processes (LWPs or pthreads) to run.
Provide a positive integer from the range C<3> to C<16>. The default
value is C<3>.
=item B<-rebuildDB>
Rebuilds the Protection Database at the beginning of Protection Server
initialization. Use this argument only in consultation with AFS
Development or Product Support.
=item B<-groupdepth> <I<# of nested groups>>, B<-depth> <I<# of nested groups>>
Specifies the group depth for nested groups when B<ptserver> is compiled

View File

@ -293,10 +293,8 @@ main(int argc, char **argv)
lwps, 3);
lwps = 3;
}
} else if (strncmp(arg, "-rebuild", alen) == 0) /* rebuildDB++ */
;
#if defined(SUPERGROUPS)
else if ((strncmp(arg, "-groupdepth", alen) == 0)
} else if ((strncmp(arg, "-groupdepth", alen) == 0)
|| (strncmp(arg, "-depth", alen) == 0)) {
depthsg = atoi(argv[++a]); /* Max search depth for supergroups */
}