コード例 #1
0
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);
}
コード例 #2
0
ファイル: cleanup.c プロジェクト: FikiHafana/ArangoDB
static void CleanupCursors (TRI_vocbase_t* const vocbase, 
                            bool force) {
  // clean unused cursors
  TRI_CleanupGeneralCursor(vocbase->_cursors, force);
}