Ticket #53: sugar-searchconnection-overflow.patch

File sugar-searchconnection-overflow.patch, 585 bytes (added by alsroot, 12 years ago)
  • sugar-datastore-0.82.0/secore/searchconnection.py

    old new  
    607607        # Repeat the search until we don't get a DatabaseModifiedError
    608608        while True:
    609609            try:
    610                 mset = enq.get_mset(startrank, maxitems, checkatleast)
     610                mset = enq.get_mset(startrank, maxitems, min(0x7FFFFFFF, checkatleast))
    611611                break
    612612            except _xapian.DatabaseModifiedError, e:
    613613                self.reopen()