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

[xapian] Locking rewrite in Xapian search module. #2201

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

ajaysusarla
Copy link
Contributor

This patch uses 2 locks for Xapian search:

  • The current activefile lock that we use
  • A new named lock.

The named lock will be on a file whose name looks like
$XAPIAN.lock.

Details about the implementation are available here[1].

[1] https://github.com/cyrusimap/cyrus-imapd/blob/master/doc/internal/locking.txt

This patch uses 2 locks for Xapian search:
* The current `activefile` lock that we use
* A new named lock.

The named lock will be on a file whose name looks like
$XAPIAN$<userid>.lock.

Details about the implementation are available here[1].

[1] https://github.com/cyrusimap/cyrus-imapd/blob/master/doc/internal/locking.txt
@ajaysusarla ajaysusarla merged commit 30e6528 into cyrusimap:master Nov 21, 2017
@ajaysusarla ajaysusarla deleted the xapianactivelock branch November 21, 2017 04:00
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.

1 participant