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

chore: better logging for lmdb_delete #3218

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Aug 19, 2021

Description

Add table names to lmdb_delete

Motivation and Context

Helps debug the db

How Has This Been Tested?

Existing tests

Checklist:

  • I'm merging against the development branch.
  • I have squashed my commits into a single commit.

{
txn.access()
.del_key(&db, key)
.or_not_found(table_name, "<unknown>", to_hex(key.as_lmdb_bytes()))?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
.or_not_found(table_name, "<unknown>", to_hex(key.as_lmdb_bytes()))?;
.or_not_found(table_name, "key", to_hex(key.as_lmdb_bytes()))?;

@aviator-app
Copy link
Contributor

aviator-app bot commented Aug 19, 2021

PR queued successfully. Your position in queue is: 1

@aviator-app aviator-app bot merged commit b03a6f8 into tari-project:development Aug 19, 2021
@sdbondi sdbondi deleted the core-better-lmdb-delete-logging branch August 20, 2021 05:41
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.

2 participants