Skip to content

Commit

Permalink
Revert deadlock-causing change
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Jun 7, 2014
1 parent ecefa2a commit 36f81ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mailpile/postinglist.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ def GetFile(cls, session, sig, mode='r'):

@classmethod
def _Append(cls, session, word, mail_ids, compact=True):
super(GlobalPostingList, cls)._Append(session, word, mail_ids,
compact=compact)
global GLOBAL_POSTING_LIST
GLOBAL_GPL_LOCK.acquire()
try:
super(GlobalPostingList, cls)._Append(session, word, mail_ids,
compact=compact)
sig = cls.WordSig(word, session.config)
if GLOBAL_POSTING_LIST is None:
GLOBAL_POSTING_LIST = {}
Expand Down

0 comments on commit 36f81ce

Please sign in to comment.