• Vincent Pelletier's avatar
    all: Avoid trivial direct calls to {recursiveI,i}mmediateReindexObject · ab9e0f93
    Vincent Pelletier authored
    These methods must not be called synchronously:
    - they can break catalog by not being careful enough about other
      reindexations which may happen in parallel. See the serialization_tag
      mechanism for more.
    - indexation gets executed in the security context of the user causing the
      call, which may lead to an indexation result different from what happens
      when indexation happens with an all-accesses user.
    These lines of code (some even commented-out) give a bad example. Replace
    them with safe equivalents.
    ab9e0f93
testPackingList.py 88.3 KB