remove jvm leftovers, gaa!
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 28 Nov 2012 15:57:53 +0000 (16:57 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 28 Nov 2012 15:57:53 +0000 (16:57 +0100)
apps/catalogue/models/listeners.py
apps/pdcounter/models.py
apps/search/__init__.py
wolnelektury/settings/custom.py

index 93ad2d7..41c974a 100644 (file)
@@ -61,7 +61,6 @@ if not settings.NO_SEARCH_INDEX:
     def _remove_book_from_index_handler(sender, instance, **kwargs):
         """ remove the book from search index, when it is deleted."""
         import search
-        search.JVM.attachCurrentThread()
         idx = search.Index()
         idx.open(timeout=10000)  # 10 seconds timeout.
         try:
index 35cbe29..50eb43e 100644 (file)
@@ -92,7 +92,6 @@ if not settings.NO_SEARCH_INDEX:
     def update_index(sender, instance, **kwargs):
         import search
         print "update pd index %s [update %s]" % (instance, 'created' in kwargs)
-        search.JVM.attachCurrentThread()
         idx = search.Index()
         idx.open()
         try:
index 279d281..8081416 100644 (file)
@@ -1,4 +1,2 @@
-#import lucene
 
-#from index import Index, Search, ReusableIndex, SearchResult, JVM, IndexChecker, IndexStore
 from index import Index, Search, SearchResult
index 446c730..a0bab7a 100644 (file)
@@ -16,6 +16,3 @@ CATALOGUE_CUSTOMPDF_RATE_LIMIT = '1/m'
 # set to 'new' or 'old' to skip time-consuming test
 # for TeX morefloats library version
 LIBRARIAN_PDF_MOREFLOATS = None
-
-# Max memory used by search
-JVM_MAXHEAP = '256m'