Commit d8a21d1b authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

sql_catalog: Use isIndexing Required for checking on indexing

parent 2dc167fa
...@@ -1258,7 +1258,7 @@ class Catalog(Folder, ...@@ -1258,7 +1258,7 @@ class Catalog(Folder,
Similar problems may happen with relations and acquisition of uid values (ex. order_uid) Similar problems may happen with relations and acquisition of uid values (ex. order_uid)
with the risk of graph loops with the risk of graph loops
""" """
if not self.isIndexable(): if not self.isIndexingRequired():
return None return None
with global_reserved_uid_lock: with global_reserved_uid_lock:
...@@ -1430,7 +1430,7 @@ class Catalog(Folder, ...@@ -1430,7 +1430,7 @@ class Catalog(Folder,
LOG('ZSLQCatalog.SQLCatalog:catalogObjectList', WARNING, LOG('ZSLQCatalog.SQLCatalog:catalogObjectList', WARNING,
'idxs is ignored in this function and is only provided to be compatible with CMFCatalogAware.reindexObject.') 'idxs is ignored in this function and is only provided to be compatible with CMFCatalogAware.reindexObject.')
if not self.isIndexable(): if not self.isIndexingRequired():
return return
# Reminder about optimization: It might be possible to issue just one # Reminder about optimization: It might be possible to issue just one
...@@ -1684,7 +1684,7 @@ class Catalog(Folder, ...@@ -1684,7 +1684,7 @@ class Catalog(Folder,
""" """
Set the path as deleted Set the path as deleted
""" """
if not self.isIndexable(): if not self.isIndexingRequired():
return None return None
if uid is None and path is not None: if uid is None and path is not None:
...@@ -1717,7 +1717,7 @@ class Catalog(Folder, ...@@ -1717,7 +1717,7 @@ class Catalog(Folder,
XXX Add filter of methods XXX Add filter of methods
""" """
if not self.isIndexable(): if not self.isIndexingRequired():
return None return None
if uid is None and path is not None: if uid is None and path is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment