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 WAL lock to prevent timing lock contention #3927

Merged
merged 1 commit into from
Sep 1, 2015

Conversation

benbjohnson
Copy link
Contributor

Overview

This pull request adds a lock to the WAL log to prevent timing how long it takes to obtain the Bolt write lock.

panic(fmt.Sprintf("error writing the wal to the index: %s", err.Error()))
}
if p.log.EnableLogging {
p.log.logger.Printf("write to index took of partition %d took %s\n", p.id, time.Since(startTime))
Copy link
Member

Choose a reason for hiding this comment

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

extra took in line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@pauldix
Copy link
Member

pauldix commented Sep 1, 2015

other than the small nit, +1

This commit adds a lock to the WAL log to prevent timing how long
it takes to obtain the Bolt write lock.
benbjohnson added a commit that referenced this pull request Sep 1, 2015
Add WAL lock to prevent timing lock contention
@benbjohnson benbjohnson merged commit b3556c6 into influxdata:master Sep 1, 2015
@benbjohnson benbjohnson deleted the wal-lock branch September 1, 2015 17:08
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.

None yet

2 participants