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

Add BypassDirLock option #1243

Merged
merged 4 commits into from
Mar 13, 2020
Merged

Add BypassDirLock option #1243

merged 4 commits into from
Mar 13, 2020

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Mar 5, 2020

Fixes #988
Based on #1046

This PR adds BypassDirLock option which allows badger to work without acquiring lock on the data directory. This option could lead to data corruption if used with multiple badger instances trying to write to the same badger directory.


This change is Reviewable

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ashish-goswami)

@jarifibrahim jarifibrahim merged commit 1bcbefc into master Mar 13, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/flock-optional branch March 13, 2020 15:35
jarifibrahim pushed a commit that referenced this pull request Mar 13, 2020
Fixes #988
Based on #1046

This PR adds `BypassDirLock` option which allows badger to work without
acquiring a lock on the data directory. This option could lead to data
corruption if used with multiple badger instances trying to write to
the same badger directory.

Co-authored-by: Ehsan Noureddin Moosa <ehsannm@users.noreply.github.com>
(cherry picked from commit 1bcbefc)
jarifibrahim pushed a commit that referenced this pull request Mar 24, 2020
Fixes #988
Based on #1046

This PR adds `BypassDirLock` option which allows badger to work without
acquiring a lock on the data directory. This option could lead to data
corruption if used with multiple badger instances trying to write to
the same badger directory.

Co-authored-by: Ehsan Noureddin Moosa <ehsannm@users.noreply.github.com>
(cherry picked from commit 1bcbefc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Remove FLOCK or make it optional
3 participants