From: Russ Allbery Date: Wed, 26 May 2010 16:28:57 +0000 (-0500) Subject: Remove -rebuildDB flag to ptserver X-Git-Tag: openafs-devel-1_5_75~235 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1f22cab96abd1ec83ea5c0d9c3fc1a405385b8ea;p=packages%2Fo%2Fopenafs.git 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 Tested-by: Derrick Brashear --- diff --git a/doc/man-pages/pod8/ptserver.pod b/doc/man-pages/pod8/ptserver.pod index e02465117..ff152c2be 100644 --- a/doc/man-pages/pod8/ptserver.pod +++ b/doc/man-pages/pod8/ptserver.pod @@ -8,7 +8,7 @@ ptserver - Initializes the Protection Server
B S<<< [B<-database> | B<-db> >] >>> S<<< [B<-p> >] >>> S<<< [B<-d> >] >>> - [B<-rebuildDB>] S<<< [B<-groupdepth> >] >>> + S<<< [B<-groupdepth> >] >>> S<<< [B<-default_access> > >] >>> [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> >, B<-depth> > Specifies the group depth for nested groups when B is compiled diff --git a/src/ptserver/ptserver.c b/src/ptserver/ptserver.c index 2f4114c73..8490e3b71 100644 --- a/src/ptserver/ptserver.c +++ b/src/ptserver/ptserver.c @@ -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 */ }