mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
13.25.2009 506819cd66c81642fb3f0a334d75771a77350a6c
Remove the boolean member isClientBootstrapped.  Originally it was used to only execute the code of the method bootstrapClient once, however this is not ideal for some client codes.  Some methods, such as initializeConfiguration, require the DirectoryServer object to be 'clean' (freshly bootstrapped), this can only be achieved by executing all the code of bootstrapClient.

The changes are actually just cosmetic, the logic in the code remains intact (simply the member isClientBootstrapped has been removed).
1 files modified
10 ■■■■■ changed files
opends/src/server/org/opends/server/core/DirectoryServer.java 10 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -379,9 +379,6 @@
  // Indicates whether the server has been bootstrapped.
  private boolean isBootstrapped;
  // Indicates whether the server has been bootstrapped for client use.
  private boolean isClientBootstrapped;
  // Indicates whether the server is currently online.
  private boolean isRunning;
@@ -802,7 +799,6 @@
  {
    environmentConfig        = config;
    isBootstrapped           = false;
    isClientBootstrapped     = false;
    isRunning                = false;
    shuttingDown             = false;
    lockdownMode             = false;
@@ -905,11 +901,6 @@
  {
    synchronized (directoryServer)
    {
      if (directoryServer.isClientBootstrapped)
      {
        return;
      }
      // Set default values for variables that may be needed during schema
      // processing.
@@ -8425,7 +8416,6 @@
  {
    checkSchema                   = true;
    isBootstrapped                = false;
    isClientBootstrapped          = false;
    isRunning                     = false;
    lockdownMode                  = true;
    rejectUnauthenticatedRequests = true;