Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup RENAME_DB() macro #4445

Closed
wants to merge 1 commit into from
Closed

Fixup RENAME_DB() macro #4445

wants to merge 1 commit into from

Conversation

hyc
Copy link
Collaborator

@hyc hyc commented Sep 25, 2018

Make sure target DB's record is on a writable page

Make sure target DB's record is on a writable page
MDB_dbi tdbi; \
n2[sizeof(n2)-2]--; \
/* play some games to put (name) on a writable page */ \
result = mdb_dbi_open(txn, n2, MDB_CREATE, &tdbi); \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a mdb_dbi_close ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, mdb_drop closes and deletes.

Copy link
Contributor

@fluffypony fluffypony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

fluffypony added a commit that referenced this pull request Sep 29, 2018
fe12564 Fixup RENAME_DB() macro (Howard Chu)
fluffypony added a commit that referenced this pull request Sep 29, 2018
fe12564 Fixup RENAME_DB() macro (Howard Chu)
@fluffypony fluffypony closed this Sep 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants