void TRI_FreeShadowStore (TRI_shadow_store_t* const store) { assert(store); // force deletion of all remaining shadows TRI_CleanupShadowData(store, 0.0, true); TRI_DestroyMutex(&store->_lock); TRI_DestroyAssociativePointer(&store->_ids); TRI_DestroyAssociativePointer(&store->_pointers); TRI_Free(TRI_UNKNOWN_MEM_ZONE, store); }
static void CleanupShadows (TRI_vocbase_t* const vocbase, bool force) { // clean unused cursors TRI_CleanupShadowData(vocbase->_cursors, (double) SHADOW_CURSOR_MAX_AGE, force); }
static void CleanupShadows (TRI_vocbase_t* const vocbase, bool force) { LOG_TRACE("cleaning shadows"); // clean unused cursors TRI_CleanupShadowData(vocbase->_cursors, SHADOW_CURSOR_MAX_AGE, force); }