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.
| | |
| | | import java.net.ServerSocket; |
| | | import java.net.Socket; |
| | | import java.net.UnknownHostException; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | |
| | | { |
| | | 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 |
| | | */ |