void TRI_FreeStoreGeneralCursor (TRI_general_cursor_store_t* store) { // force deletion of all remaining cursors TRI_CleanupGeneralCursor(store, true); TRI_DestroySpin(&store->_lock); TRI_DestroyAssociativePointer(&store->_ids); TRI_Free(TRI_UNKNOWN_MEM_ZONE, store); }
static void CleanupCursors (TRI_vocbase_t* const vocbase, bool force) { // clean unused cursors TRI_CleanupGeneralCursor(vocbase->_cursors, force); }