| |
@@ -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: ?