Cross reference for modules/ud/ud_recover.c of index.

# File modules/ud/ud_recover.c

      $Revision: 1.2 $

      Functions to keep records for crash recovery

      Status: NOT REVUED, NOT TESTED

      Author(s):       Andrei Robachevsky

## Included Files

- `#include "modules/ud/ud_tr.h"`
  - `#include "modules/ud/ud_int.h"`
    - `#include <stdio.h>`
    - `#include <strings.h>`
    - `#include <glib.h>`
    - `#include <stdlib.h>`
    - `#include <ctype.h>`
    - `#include <unistd.h>`
    - `#include "include/defs.h"`
      - `#include <glib.h>`
      - `#include "include/bitmask.h"`
      - `#include "include/DF_class_enum.def"`
      - `#include "include/DF_class_mask.def"`
      - `#include "include/DF_attribute_enum.def"`
      - `#include "include/DF_attribute_inv_attr_mask.def"`
      - `#include "include/which_keytypes.h"`
        - `#include "include/bitmask.h"`
      - `#include "include/iproutines.h"`
        - `#include <glib.h>`
        - `#include <include/erroutines.h>`
        - `#include <sys/types.h>`
      - `#include "include/rxroutines.h"`
        - `#include <glib.h>`
        - `#include <pthread.h>`
        - `#include <stubs.h>`
        - `#include <include/memwrap.h>`
        - `#include <stdio.h>`
        - `#include <iproutines.h>`
        - `#include <erroutines.h>`
        - `#include "include/sk.h"`
          - `#include <sys/types.h>`
          - `#include <sys/socket.h>`
          - `#include <netinet/in.h>`
          - `#include <stdlib.h>`
          - `#include <errno.h>`
          - `#include <netdb.h>`
          - `#include <signal.h>`
          - `#include <stdio.h>`
          - `#include <iproutines.h>`
        - `#include "include/thread.h"`
          - `#include <pthread.h>`
    - `#include "include/mysql_driver.h"`
      - `#include "/opt/package/mysql/include/mysql/mysql.h"`
        - `#include <sys/types.h>`
        - `#include "/opt/package/mysql/include/mysql/mysql_com.h"`
        - `#include "/opt/package/mysql/include/mysql/mysql_version.h"`
      - `#include "/opt/package/mysql/include/mysql/mysqld_error.h"`
      - `#include "include/erroutines.h"`
    - `#include "include/iproutines.h"`
    - `#include "include/erroutines.h"`
    - `#include "include/rp.h"`
      - `#include <stddef.h>`
      - `#include <glib.h>`
      - `#include <defs.h>`
      - `#include <iproutines.h>`
      - `#include <erroutines.h>`
      - `#include <rxroutines.h>`
      - `#include <mysql_driver.h>`
      - `#include "include/ca_defs.h"`
        - `#include <pthread.h>`
        - `#include <glib.h>`
    - `#include "include/nh.h"`
      - `#include <mysql_driver.h>`
    - `#include "include/sk.h"`
    - `#include "include/ca_configFns.h"`
      - `#include "include/ca_defs.h"`
    - `#include "include/ca_dictSyms.h"`
    - `#include "include/ca_macros.h"`
      - `#include "include/ca_adminAttribs.h"`
    - `#include "include/ca_srcAttribs.h"`
    - `#include "include/globaldefs.h"`
    - `#include "include/bitmask.h"`
    - `#include "include/which_keytypes.h"`

- `#include "modules/ud/ud.h"`

## Global Variable Lock

`pthread_mutex_t Lock`

Included from | include/ca_defs.h
Visible in: |  | modules/ac/access_control.c
|  | modules/ca/ca_configFns.c
|  | modules/ca/ca_initFn.c
|  | modules/ca/ca_sourceLoader.c
|  | modules/ca/ca_values.c
|  | modules/er/er_macro.c
|  | modules/pm/pm_serials.c
|  | modules/pm/protocol_mirror.c
|  | modules/qc/query_command.c
|  | modules/qi/query_instructions.c
|  | modules/rp/rp_convert.c
|  | modules/rp/rp_load.c
|  | modules/rp/rp_search.c
|  | modules/rp/rp_tree.c
|  | modules/rp/rp_update.c
|  | modules/sv/server.c
|  | modules/ud/ud_comrol.c
|  | modules/ud/ud_core.c
|  | modules/ud/ud_main.c
|  | modules/ud/ud_misc.c
|  | modules/ud/ud_process_stream.c
|  | modules/ud/ud_recover.c
Used in: | ca_get_adminIntElement() | modules/ca/ca_configFns.c
| ca_get_adminStrElement() | modules/ca/ca_configFns.c
| ca_get_boolean() | modules/ca/ca_configFns.c
| ca_get_dirlist() | modules/ca/ca_configFns.c
| ca_get_int() | modules/ca/ca_configFns.c
| ca_get_string() | modules/ca/ca_configFns.c
| ca_set_boolean() | modules/ca/ca_configFns.c
| ca_set_string() | modules/ca/ca_configFns.c
| ca_srchandle2Intelement() | modules/ca/ca_configFns.c
| ca_srchandle2Strelement() | modules/ca/ca_configFns.c

## Global Variable newPort

`char newPort[16]`

Included from | include/ca_defs.h
Visible in: |  | modules/ac/access_control.c
|  | modules/ca/ca_configFns.c
|  | modules/ca/ca_initFn.c
|  | modules/ca/ca_sourceLoader.c
|  | modules/ca/ca_values.c
|  | modules/er/er_macro.c
|  | modules/pm/pm_serials.c
|  | modules/pm/protocol_mirror.c
|  | modules/qc/query_command.c
|  | modules/qi/query_instructions.c
|  | modules/rp/rp_convert.c
|  | modules/rp/rp_load.c
|  | modules/rp/rp_search.c
|  | modules/rp/rp_tree.c
|  | modules/rp/rp_update.c
|  | modules/sv/server.c
|  | modules/ud/ud_comrol.c
|  | modules/ud/ud_core.c
|  | modules/ud/ud_main.c
|  | modules/ud/ud_misc.c
|  | modules/ud/ud_process_stream.c
|  | modules/ud/ud_recover.c

## Global Function TR_check()

`int TR_check ( MYSQL* sql_connection, long transaction_id, int sockfd )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | ER_inf_va() | modules/er/er.c
| ER_perror() | modules/er/er.c
| TR_get_record() | modules/ud/ud_recover.c
| UD_ack() | modules/ud/ud_misc.c
| transaction_free() | modules/ud/ud_misc.c
| fprintf(), g_string_sprintfa()
Called by: | process_transaction() | modules/ud/ud_process_stream.c

## Global Function TR_create_record()

`long TR_create_record ( Transaction_t* tr )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | ER_perror() | modules/er/er.c
| SQ_error() | modules/sq/mysql_driver.c
| SQ_execute_query() | modules/sq/mysql_driver.c
| TR_delete_record() | modules/ud/ud_recover.c
| fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: | object_process() | modules/ud/ud_core.c
| process_nrtm() | modules/ud/ud_process_stream.c

## Global Function TR_delete_record()

`void TR_delete_record ( Transaction_t* tr )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | ER_perror() | modules/er/er.c
| SQ_error() | modules/sq/mysql_driver.c
| SQ_execute_query() | modules/sq/mysql_driver.c
| fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: | TR_create_record() | modules/ud/ud_recover.c
| TR_recover() | modules/ud/ud_recover.c
| UD_process_stream() | modules/ud/ud_process_stream.c

## Global Function TR_get_record()

`Transaction_t* TR_get_record ( MYSQL* sql_connection, long transaction_id )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | SQ_free_result() | modules/sq/mysql_driver.c
| SQ_row_next() | modules/sq/mysql_driver.c
| tr_get_dummies() | modules/ud/ud_recover.c
| tr_get_int() | modules/ud/ud_recover.c
| tr_get_long() | modules/ud/ud_recover.c
| tr_get_sql_record() | modules/ud/ud_recover.c
| tr_get_str() | modules/ud/ud_recover.c
| transaction_new() | modules/ud/ud_misc.c
| fprintf(), g_strdup(), g_string_sprintf()
Called by: | TR_check() | modules/ud/ud_recover.c
| TR_recover() | modules/ud/ud_recover.c

## Global Function TR_recover()

`int TR_recover ( MYSQL* sql_connection )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | NH_comrol() | modules/nh/nh.c
| TR_delete_record() | modules/ud/ud_recover.c
| TR_get_record() | modules/ud/ud_recover.c
| TR_update_record() | modules/ud/ud_recover.c
| UD_commit_I() | modules/ud/ud_comrol.c
| UD_commit_II() | modules/ud/ud_comrol.c
| UD_delete() | modules/ud/ud_comrol.c
| UD_rollback() | modules/ud/ud_comrol.c
| transaction_free() | modules/ud/ud_misc.c
| UD_comrol_serial(), UD_create_serial(), fprintf()
Called by: | SV_start() | modules/sv/server.c

## Global Function TR_update_record()

`long TR_update_record ( Transaction_t* tr, int field )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | ER_perror() | modules/er/er.c
| SQ_error() | modules/sq/mysql_driver.c
| SQ_execute_query() | modules/sq/mysql_driver.c
| fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: | TR_recover() | modules/ud/ud_recover.c
| UD_commit() | modules/ud/ud_comrol.c
| UD_process_stream() | modules/ud/ud_process_stream.c
| create_dummy() | modules/ud/ud_core.c
| object_process() | modules/ud/ud_core.c
| perform_create() | modules/ud/ud_core.c
| perform_update() | modules/ud/ud_core.c
| process_nrtm() | modules/ud/ud_process_stream.c
| process_updates() | modules/ud/ud_process_stream.c
| update_attr() | modules/ud/ud_core.c

## Global Function tr_get_dummies()

`int tr_get_dummies ( Transaction_t* tr )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | ER_perror() | modules/er/er.c
| SQ_error() | modules/sq/mysql_driver.c
| SQ_execute_query() | modules/sq/mysql_driver.c
| SQ_free_result() | modules/sq/mysql_driver.c
| SQ_get_column_string_nocopy() | modules/sq/mysql_driver.c
| SQ_row_next() | modules/sq/mysql_driver.c
| fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf(), sscanf()
Called by: | TR_get_record() | modules/ud/ud_recover.c

## Global Function tr_get_int()

`int tr_get_int ( MYSQL_RES* result, MYSQL_ROW* row, int col )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | SQ_get_column_string_nocopy() | modules/sq/mysql_driver.c
| fprintf(), sscanf()
Called by: | TR_get_record() | modules/ud/ud_recover.c

## Global Function tr_get_long()

`long tr_get_long ( MYSQL_RES* result, MYSQL_ROW* row, int col )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | SQ_get_column_string_nocopy() | modules/sq/mysql_driver.c
| fprintf(), sscanf()
Called by: | TR_get_record() | modules/ud/ud_recover.c

## Global Function tr_get_sql_record()

`MYSQL_RES* tr_get_sql_record ( MYSQL* sql_connection, long transaction_id )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | ER_perror() | modules/er/er.c
| SQ_error() | modules/sq/mysql_driver.c
| SQ_execute_query() | modules/sq/mysql_driver.c
| fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: | TR_get_record() | modules/ud/ud_recover.c

## Global Function tr_get_str()

`char* tr_get_str ( MYSQL_RES* result, MYSQL_ROW* row, int col )`

Prototyped in: | modules/ud/ud_tr.h
Calls: | SQ_get_column_string_nocopy() | modules/sq/mysql_driver.c
Called by: | TR_get_record() | modules/ud/ud_recover.c