Skip to content

Conversation

@ad-tra
Copy link
Member

@ad-tra ad-tra commented Feb 24, 2025

No description provided.

Copy link
Member

@Parth Parth left a comment

Choose a reason for hiding this comment

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

you also should bump versions on the two crates here so we can release this change

db/src/logger.rs Outdated

if config.fs_locks {
if config.fs_locks_block {
#[cfg(not(target_family = "wasm"))]
Copy link
Member

Choose a reason for hiding this comment

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

I believe you can add this check to the if statement on 242 to get rid of the double cfg on both branches

Copy link
Member

Choose a reason for hiding this comment

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

if someone tries to use fs_locks and is on wasm we should either panic or return an error (not silently continue to work)

db/src/logger.rs Outdated
}
}

#[cfg(not(target_family = "wasm"))]
Copy link
Member

Choose a reason for hiding this comment

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

is the idea of impl'ing drop incompatible with wasm or just the unlock statement? if it's the later then just be more surgical with the cfg

@ad-tra ad-tra requested a review from Parth February 24, 2025 00:42
@Parth Parth merged commit 0b31649 into master Feb 24, 2025
1 check passed
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