Bug 669205
Summary: | db2bak: backed up changelog should include RUVs | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Noriko Hosoi <nhosoi> | ||||
Component: | Command Line Utilities | Assignee: | Noriko Hosoi <nhosoi> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 1.2.7 | CC: | amsharma, andrey.ivanov, ohegarty, rmeggins | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-07 16:39:54 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 639035, 656390 | ||||||
Attachments: |
|
Description
Noriko Hosoi
2011-01-12 21:16:26 UTC
Created attachment 473957 [details] git patch file (master) Description: Introduced backup plugin hooks: SLAPI_PLUGIN_BE_PRE_BACKUP_FN and SLAPI_PLUGIN_BE_POST_BACKUP_FN to call back cl5WriteRUV and cl5DeleteRUV, respectively. cl5WriteRUV adds RUVs to changelog and cl5DeleteRUV reads and deletes RUVs in changelog. The call- back functions are avaiable only when the process is initialized as a server, which must have started with a backend normal mode flag (DBLAYER_NORMAL_MODE) not with other utility modes such as DBLAYER_ARCHIVE_MODE. With this restriction, db2bak is not allowed to use to back up the database including changelog db when the server is up. If launched, the utility fails with this error message: [...] - db2archive: pre-backup-plugin failed (1). [...] - ERROR: Standalone db2bak is not supported \ when a multimaster replication enabled server is coexisting. Please use db2bak.pl, instead. As mentioned in the message, db2bak.pl is supposed to be used. See also: http://directory.fedoraproject.org/wiki/Move_changelog#Backing_up_Changelog Reviewed by Nathan (Thanks!!!) Pushed to master. $ git merge work Updating e9fa824..f9a13fd Fast-forward Makefile.am | 2 +- Makefile.in | 64 +++---- ldap/servers/plugins/replication/cl5_api.c | 198 +++++++++++++++++++- ldap/servers/plugins/replication/cl5_api.h | 13 ++ ldap/servers/plugins/replication/cl5_init.c | 2 + ldap/servers/plugins/replication/repl5_init.c | 6 +- .../plugins/replication/repl5_replica_config.c | 11 +- ldap/servers/slapd/back-ldbm/archive.c | 19 ++ ldap/servers/slapd/pblock.c | 24 +++ ldap/servers/slapd/plugin.c | 6 +- ldap/servers/slapd/protect_db.h | 2 +- ldap/servers/slapd/slap.h | 4 + ldap/servers/slapd/slapi-plugin.h | 2 + ldap/servers/slapd/slapi-private.h | 2 + 14 files changed, 302 insertions(+), 53 deletions(-) $ git push Counting objects: 43, done. Delta compression using up to 2 threads. Compressing objects: 100% (22/22), done. Writing objects: 100% (22/22), 5.05 KiB, done. Total 22 (delta 20), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git e9fa824..f9a13fd master -> master *** Bug 158661 has been marked as a duplicate of this bug. *** This bug is already covered under ChangeLog test suit and verified successfully. |