#50043 Ticket 49927 - dsctl db2index does not work
Closed 3 years ago by spichugi. Opened 5 years ago by mreynolds.
mreynolds/389-ds-base ticket49927  into  master

@@ -2961,22 +2961,22 @@ 

              self.log.error("db2index: missing required backend name or suffix")

              return False

  

-         cmd = [prog,]

+         cmd = [prog, ]

          if attrs or vlvTag:

              cmd.append('db2index')

+             if bename:

+                 cmd.append('-n')

+                 cmd.append(bename)

          else:

              cmd.append('upgradedb')

              cmd.append('-a')

              now = datetime.now().isoformat()

              cmd.append(os.path.join(self.get_bak_dir(), 'reindex_%s' % now))

+             cmd.append('-f')

  

          cmd.append('-D')

          cmd.append(self.get_config_dir())

  

-         if bename:

-             cmd.append('-n')

-             cmd.append(bename)

- 

          # Can only use suffiix in attr only mode.

          if suffixes and (attrs or vlvTag):

              for suffix in suffixes:

Description:

When you don't specify any attributes to index, then all attributes
should be reindexed. This is accomplished by using "ns-slapd upgradedb"
but we were not using the correct command line options for this to work.

https://pagure.io/389-ds-base/issue/49927

Reviewed by: ?

rebased onto 6fe6101

5 years ago

Pull-Request has been merged by mreynolds

5 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3102

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

3 years ago
Metadata