Chapter 8. State Internals

Table of Contents

Flow Traces

Flow Traces

Example 8.1. Flow: mod_tasks

    mod_tasks:
      smd_worker_spawn_tasks
        "pushes tasks into g_threadp_tasks thread poool"

      smd_threadpfn_tasks 
        "executes the tasks as they arrive"
    
      task_execute_queries
        smd_execute_query
          smd_run_query_sending
          smd_realm_server_query
            if local query:
              scd_realm_server_query
                scd_reply_create
                scd_tree_node_search
                scd_tree_resolve
                scd_query_setup_paths
                INVOKE: HOOK SERVE FUNCTION
                RETURN REPLY
            else:
              scd_server_query_remote
                sul_httpd_req_create
                sul_httpd_req_open
                sul_httpd_req_retrieve
                sul_configuration_parse
                scd_reply_parse_cfg
                sul_httpd_req_close
                RETURN REPLY
      

Example 8.2. Flow: mod_rrd

    mod_rrd:
      sul_configuration_load
      check_definitions
        if check_source_filter
          check_paths
            rrd_database_create
            incorporate_values
              rrd_database_series_push
            rrd_create_database
              rrd_create_directory
            rrd_update_database
            write_manifest_file
      

Example 8.3. Flow: mod_lua

    mod_lua:
      modula_instance_create
        lua: smd_create
      reply_walk
      if !interested:
        RETURN
      lua: smd_reply_received
      

Example 8.4. Flow: mod_xml

    mod_xml:
      sul_configuration_load
      mnfst_check_definitions
        mnfst_check_paths
          mnfst_create_directory
          mnfst_write