https://bugs.openldap.org/show_bug.cgi?id=10108
Issue ID: 10108 Summary: "mdb_dump -a" does not dump the main database Product: LMDB Version: 0.9.29 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: tuukka.pensala@gmail.com Target Milestone: ---
In mdb_dump.c we have these instructions:
/* -a: dump main DB and all subDBs * -s: dump only the named subDB * -n: use NOSUBDIR flag on env_open * -p: use printable characters * -f: write to file instead of stdout * -V: print version and exit * (default) dump only the main DB */
However, contrary to the description, the option -a does not dump the main DB. With argument -a "dumpit(..)" is called for the named databases, but not for the unnamed one.
With the current behavior, if the data store contains subDBs and has user-added data in the main DB, there seems to be no way to dump all of it at once using mdb_dump.
https://bugs.openldap.org/show_bug.cgi?id=10108
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Howard Chu hyc@openldap.org --- Applications should not use the main database for arbitrary data when using named subDBs.
https://bugs.openldap.org/show_bug.cgi?id=10108
Tuukka Pensala tuukka.pensala@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|WONTFIX |---
--- Comment #2 from Tuukka Pensala tuukka.pensala@gmail.com --- (In reply to Howard Chu from comment #1)
Applications should not use the main database for arbitrary data when using named subDBs.
Ok, thank you for the response. Could the instructions for the option -a then be changed to be more accurate? So instead of
"-a: dump main DB and all subDBs"
the instructions could say
"-a: dump all subDBs".
https://bugs.openldap.org/show_bug.cgi?id=10108
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.0.0 Keywords|needs_review | Assignee|bugs@openldap.org |hyc@openldap.org