Skip to content
  • Michał Kępień's avatar
    Make async hooks code use the 'recursions' array · 1a635b54
    Michał Kępień authored and Ondřej Surý's avatar Ondřej Surý committed
    Async hooks are the last feature using the client->fetchhandle and
    client->query.fetch pointers.  Update ns_query_hookasync() and
    query_hookresume() so that they use a dedicated slot in the 'recursions'
    array.  Note that async hooks are still not expected to initiate
    recursion if one was already started by a prior ns_query_recurse() call,
    so the REQUIRE assertion in ns_query_hookasync() needs to check the
    RECTYPE_NORMAL slot rather than the RECTYPE_HOOK one.
    1a635b54