- Timestamp:
- 21 Sep 2007, 19:02:23 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/PatchQueueCatalogProcessQueue.py
r2264 r2266 11 11 from Products.QueueCatalog.CatalogEventQueue import SAFE_POLICY, ALTERNATIVE_POLICY 12 12 from Products.QueueCatalog.QueueCatalog import cataloged 13 from Products.QueueCatalog.QueueCatalog import QueueCatalog 13 from Products.QueueCatalog.QueueCatalog import QueueCatalog 14 14 from ZODB.POSException import ConflictError 15 15 from ZEO.Exceptions import ClientDisconnected … … 17 17 security = ClassSecurityInformation() 18 18 19 def __init__(self, 20 buckets=1009, 19 def __init__(self, 20 buckets=1009, 21 21 conflict_policy=SAFE_POLICY, 22 22 bypass = False, … … 44 44 # update metadata during queue processing, rather than immediately 45 45 46 # similarly, limiting the idxs only limits the immediate indexes. If 46 # similarly, limiting the idxs only limits the immediate indexes. If 47 47 # any work needs to be done in the queue processing, it will all be 48 # done: we have not implemented partial indexing during queue 49 # processing. The only way to avoid any of it is to avoid all of it 50 # (i.e., update metadata immediately and don't have any indexes to 48 # done: we have not implemented partial indexing during queue 49 # processing. The only way to avoid any of it is to avoid all of it 50 # (i.e., update metadata immediately and don't have any indexes to 51 51 # update on the queued side). 52 52 … … 76 76 # (non-undo) conflicts of add events. This will slow things 77 77 # down a bit, but adds should be relatively infrequent. 78 bypass_queue = self.getBypassQueue() 78 bypass_queue = self.getBypassQueue() 79 79 # Now, try to decide if the catalog has the uid (path). 80 80 already_cataloged = cataloged(catalog, uid) … … 85 85 self._queues[hash(uid) % self._buckets].getEvent(uid) in 86 86 ADDED_EVENTS) 87 87 88 if idxs and already_cataloged: 88 89 # if not already_cataloged, we index the whole thing … … 99 100 self._update(uid, already_cataloged and CHANGED or ADDED) 100 101 # Update some of the indexes immediately. 101 elif immediate_indexes:102 if immediate_indexes: 102 103 # Update some of the indexes immediately. 103 104 catalog.catalog_object(
Note: See TracChangeset for help on using the changeset viewer.