Go to the source code of this file.
Functions | |
| char * | NdbConfig_ClusterLogFileName (int node_id) |
| char * | NdbConfig_ErrorFileName (int node_id) |
| const char * | NdbConfig_get_path (int *len) |
| char * | NdbConfig_NdbCfgName (int with_ndb_home) |
| char * | NdbConfig_NextTraceFileName (int node_id) |
| char * | NdbConfig_PidFileName (int node_id) |
| void | NdbConfig_SetPath (const char *path) |
| char * | NdbConfig_SignalLogFileName (int node_id) |
| char * | NdbConfig_StdoutFileName (int node_id) |
| char * | NdbConfig_TraceFileName (int node_id, int file_no) |
|
|
Definition at line 100 of file NdbConfig.c. References basestring_snprintf(), buf, get_prefix_buf(), and len. Referenced by MgmtSrvr::startEventLog(). 00100 { 00101 char *buf= get_prefix_buf(128, node_id); 00102 int len= strlen(buf); 00103 basestring_snprintf(buf+len, 128, "_cluster.log"); 00104 return buf; 00105 }
|
|
|
Definition at line 92 of file NdbConfig.c. References basestring_snprintf(), buf, get_prefix_buf(), and len. Referenced by WriteMessage(). 00092 { 00093 char *buf= get_prefix_buf(128, node_id); 00094 int len= strlen(buf); 00095 basestring_snprintf(buf+len, 128, "_error.log"); 00096 return buf; 00097 }
|
|
|
Definition at line 26 of file NdbConfig.c. References datadir_path, NdbEnv_GetEnv(), and path. Referenced by main(), and NdbConfig_AllocHomePath(). 00027 { 00028 const char *path= NdbEnv_GetEnv("NDB_HOME", 0, 0); 00029 int path_len= 0; 00030 if (path) 00031 path_len= strlen(path); 00032 if (path_len == 0 && datadir_path) { 00033 path= datadir_path; 00034 path_len= strlen(path); 00035 } 00036 if (path_len == 0) { 00037 path= "."; 00038 path_len= strlen(path); 00039 } 00040 if (_len) 00041 *_len= path_len; 00042 return path; 00043 }
|
|
|
Definition at line 62 of file NdbConfig.c. References basestring_snprintf(), buf, len, NdbConfig_AllocHomePath(), and NdbMem_Allocate(). Referenced by LocalConfig::init(). 00062 { 00063 char *buf; 00064 int len= 0; 00065 00066 if (with_ndb_home) { 00067 buf= NdbConfig_AllocHomePath(128); 00068 len= strlen(buf); 00069 } else 00070 buf= NdbMem_Allocate(128); 00071 basestring_snprintf(buf+len, 128, "Ndb.cfg"); 00072 return buf; 00073 }
|
|
|
Definition at line 124 of file NdbConfig.c. References basestring_snprintf(), buf, get_prefix_buf(), and len. Referenced by ErrorReporter::get_trace_no(). 00124 { 00125 char *buf= get_prefix_buf(128, node_id); 00126 int len= strlen(buf); 00127 basestring_snprintf(buf+len, 128, "_trace.log.next"); 00128 return buf; 00129 }
|
|
|
Definition at line 132 of file NdbConfig.c. References basestring_snprintf(), buf, get_prefix_buf(), and len. Referenced by main(). 00132 { 00133 char *buf= get_prefix_buf(128, node_id); 00134 int len= strlen(buf); 00135 basestring_snprintf(buf+len, 128, ".pid"); 00136 return buf; 00137 }
|
|
|
Definition at line 57 of file NdbConfig.c. References datadir_path. Referenced by ConfigRetriever::verifyConfig(). 00057 { 00058 datadir_path= path; 00059 }
|
|
|
Definition at line 108 of file NdbConfig.c. References basestring_snprintf(), buf, get_prefix_buf(), and len. Referenced by main(). 00108 { 00109 char *buf= get_prefix_buf(128, node_id); 00110 int len= strlen(buf); 00111 basestring_snprintf(buf+len, 128, "_signal.log"); 00112 return buf; 00113 }
|
|
|
Definition at line 140 of file NdbConfig.c. References basestring_snprintf(), buf, get_prefix_buf(), and len. Referenced by main(). 00140 { 00141 char *buf= get_prefix_buf(128, node_id); 00142 int len= strlen(buf); 00143 basestring_snprintf(buf+len, 128, "_out.log"); 00144 return buf; 00145 }
|
|
||||||||||||
|
Definition at line 116 of file NdbConfig.c. References basestring_snprintf(), buf, get_prefix_buf(), and len. Referenced by WriteMessage(). 00116 { 00117 char *buf= get_prefix_buf(128, node_id); 00118 int len= strlen(buf); 00119 basestring_snprintf(buf+len, 128, "_trace.log.%u", file_no); 00120 return buf; 00121 }
|
1.4.3