https://bugzilla.redhat.com/show_bug.cgi?id=194531https://bugzilla.redhat.com/attachment.cgi?id=437730&action=diffhttps://bugzilla.redhat.com/attachment.cgi?id=437730&action=edit
Thanks to Nathan for his comments to the previous proposal. Based upon the
discussion with him, changed the spec as follows:
1) leave the db2bak/bak2db's behaviour intact (verbose by default)
2) introduced a suppress option "-q" not to send the verbose messages to the
standard error, but just to the errors log.
Description: Introduced "-q" option to suppress the backing up/
restoring message for each db file.
Usage: db2bak [archivedir] [-q] [-h]
Usage: bak2db archivedir [-n backendname] [-q] | [-h]
If "-q" is specified, the verbose messages are not prited to
the standard error, but just to the errors log.
In addition, new log level SLAPI_LOG_BACKLDBM/LDAP_DEBUG_BACKLDBM
has been introduced.
https://bugzilla.redhat.com/show_bug.cgi?id=621928https://bugzilla.redhat.com/attachment.cgi?id=437670&action=diffhttps://bugzilla.redhat.com/attachment.cgi?id=437670&action=edit
Description: RUV (nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,<suffix>)
needs to be allowed to add to the DB before<suffix> is added. To allow
it, entryrdn prepares the rdn exception list (rdn_exceptions). If the
to-be-added entry (in this case RUV; and currently only RUV is in the
list) is in the list,<suffix> is added to the entryrdn index with the
temporary entry ID 0 (note: not to the primary db file id2entry.db#).
When the suffix is indeed added to the DB, the temporary ID 0 is replaced
with the given real ID.
Thanks,
--noriko
https://bugzilla.redhat.com/show_bug.cgi?id=194531https://bugzilla.redhat.com/attachment.cgi?id=436980&action=diffhttps://bugzilla.redhat.com/attachment.cgi?id=436980&action=edit
Description:
Added -v option to db2bak and bak2db and moved the Backing up/
Restoring logs to the verbose mode output. To implement the
backend verbose mode, log level SLAPI_LOG_BACKLDBM has been
introduced.
Usage: db2bak [archivedir] [-v]
Usage: bak2db archivedir [-n backendname] [-v]
Files:
ldap/admin/src/scripts/template-bak2db.in
ldap/admin/src/scripts/template-db2bak.in
ldap/include/ldaplog.h
ldap/servers/slapd/back-ldbm/archive.c
ldap/servers/slapd/back-ldbm/dblayer.c
ldap/servers/slapd/log.c
ldap/servers/slapd/main.c
ldap/servers/slapd/slapi-plugin.h
Thanks,
--noriko