1. Marko Tasic
  2. whoosh

Commits

Marko Tasic  committed 9c83c4c

in writing.py fixed SegmentWriter.__init__ missing tempdir attribute in PostingPool initialization

  • Participants
  • Parent commits 9c324c9
  • Branches cassandra-2.4x

Comments (0)

Files changed (1)

File src/whoosh/filedb/filewriting.py

View file
 
 class SegmentWriter(IndexWriter):
     def __init__(self, ix, poolclass=None, timeout=0.0, delay=0.1, _lk=True,
-                 limitmb=128, docbase=0, codec=None, compound=True, **kwargs):
+                 limitmb=128, docbase=0, codec=None, compound=True,
+                 tempdir=None, **kwargs):
         # Lock the index
         self.writelock = None
         if _lk:
         # Internals
         self.compound = compound
         poolprefix = "whoosh_%s_" % self.indexname
-        self.pool = PostingPool(limitmb=limitmb, prefix=poolprefix)
+        self.pool = PostingPool(limitmb=limitmb, prefix=poolprefix
+                                tempdir=tempdir)
         newsegment = self.newsegment = codec.new_segment(self.storage,
                                                          self.indexname)
         self.is_closed = False