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

gbellato
25.36.2006 f690b2c04100660d3ed64d2d7605f302596d6e4f
Fix a problem in the synchronization code when the directory server is started from
something else than the directory instance root because it uses a relative path
to open the changelog db and the changelog db open therefore fails in this case.

This commit change the code to use a path relative to the server root instead
of being relative to the working directory of the process.

This part of the code will need to be further changed to make this path configurable.
1 files modified
9 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/changelog/Changelog.java 9 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/changelog/Changelog.java
@@ -56,6 +56,7 @@
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.io.File;
import java.io.IOException;
/**
@@ -342,7 +343,13 @@
  {
    try
    {
      ChangelogDB.initialize("changelogDb");
      /*
       * Initialize the changelog database.
       * TODO : the changelog db path should be configurable
       */
      ChangelogDB.initialize(DirectoryServer.getServerRoot() + File.separator
          + "changelogDb");
      /*
       * create changelog cache
       */