#include <ndb_types.h>Include dependency graph for version.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| Uint32 | getMajor (Uint32 version) |
| Uint32 | getMinor (Uint32 version) |
| Uint32 | getBuild (Uint32 version) |
| Uint32 | makeVersion (Uint32 major, Uint32 minor, Uint32 build) |
| const char * | getVersionString (Uint32 version, const char *status, char *buf, unsigned sz) |
| void | ndbPrintVersion () |
| Uint32 | ndbGetOwnVersion () |
| int | ndbCompatible_mgmt_ndb (Uint32 ownVersion, Uint32 otherVersion) |
| int | ndbCompatible_ndb_mgmt (Uint32 ownVersion, Uint32 otherVersion) |
| int | ndbCompatible_mgmt_api (Uint32 ownVersion, Uint32 otherVersion) |
| int | ndbCompatible_api_mgmt (Uint32 ownVersion, Uint32 otherVersion) |
| int | ndbCompatible_api_ndb (Uint32 ownVersion, Uint32 otherVersion) |
| int | ndbCompatible_ndb_api (Uint32 ownVersion, Uint32 otherVersion) |
| int | ndbCompatible_ndb_ndb (Uint32 ownVersion, Uint32 otherVersion) |
Definition at line 32 of file version.c.
Referenced by CommandInterpreter::executeStatus(), getTextConnectedApiVersion(), getTextNDBStartCompleted(), getTextNDBStartStarted(), getVersionString(), ndb_mgm_get_version(), ndbPrintVersion(), print_nodes(), and Dbdih::sendDictLockReq().
00032 { 00033 return (version >> 0) & 0xFF; 00034 }
Here is the caller graph for this function:

Definition at line 24 of file version.c.
Referenced by ClusterMgr::execAPI_REGREQ(), CommandInterpreter::executeStatus(), Dbdih::gcpBlockedLab(), getTextConnectedApiVersion(), getTextNDBStartCompleted(), getTextNDBStartStarted(), getVersionString(), ndbPrintVersion(), print_nodes(), Dbdih::sendDictLockReq(), and Dbdih::sendDictUnlockOrd().
00024 { 00025 return (version >> 16) & 0xFF; 00026 }
Here is the caller graph for this function:

Definition at line 28 of file version.c.
Referenced by ClusterMgr::execAPI_REGREQ(), CommandInterpreter::executeStatus(), getTextConnectedApiVersion(), getTextNDBStartCompleted(), getTextNDBStartStarted(), getVersionString(), ndbPrintVersion(), print_nodes(), Dbdih::sendDictLockReq(), and Dbdih::sendDictUnlockOrd().
00028 { 00029 return (version >> 8) & 0xFF; 00030 }
Here is the caller graph for this function:

| const char* getVersionString | ( | Uint32 | version, | |
| const char * | status, | |||
| char * | buf, | |||
| unsigned | sz | |||
| ) |
Definition at line 42 of file version.c.
References basestring_snprintf(), getBuild(), getMajor(), and getMinor().
Referenced by Restore::check_file_version(), Qmgr::execAPI_REGREQ(), main(), and operator<<().
00044 { 00045 if (status && status[0] != 0) 00046 basestring_snprintf(buf, sz, 00047 "Version %d.%d.%d (%s)", 00048 getMajor(version), 00049 getMinor(version), 00050 getBuild(version), 00051 status); 00052 else 00053 basestring_snprintf(buf, sz, 00054 "Version %d.%d.%d", 00055 getMajor(version), 00056 getMinor(version), 00057 getBuild(version)); 00058 return buf; 00059 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 36 of file version.c.
References MAKE_VERSION.
Referenced by MgmApiSession::getConfig_common().
00036 { 00037 return MAKE_VERSION(major, minor, build); 00038 00039 }
Here is the caller graph for this function:

Definition at line 226 of file version.c.
References ndbCompatible_full().
00227 { 00228 return ndbCompatible_full(ownVersion, otherVersion); 00229 }
Here is the call graph for this function:

Definition at line 232 of file version.c.
References ndbCompatible_full().
Referenced by ClusterMgr::execAPI_REGCONF().
00233 { 00234 return ndbCompatible_full(ownVersion, otherVersion); 00235 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 214 of file version.c.
References ndbCompatible_upgrade().
Referenced by MgmApiSession::get_nodeid(), and MgmApiSession::getConfig_common().
00215 { 00216 return ndbCompatible_upgrade(ownVersion, otherVersion); 00217 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 208 of file version.c.
References ndbCompatible_upgrade().
Referenced by ClusterMgr::execAPI_REGCONF(), MgmApiSession::get_nodeid(), and MgmApiSession::getConfig_common().
00209 { 00210 return ndbCompatible_upgrade(ownVersion, otherVersion); 00211 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 238 of file version.c.
References ndbCompatible_upgrade().
Referenced by Qmgr::execAPI_REGREQ().
00239 { 00240 return ndbCompatible_upgrade(ownVersion, otherVersion); 00241 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 220 of file version.c.
References ndbCompatible_full().
Referenced by Qmgr::execAPI_REGREQ().
00221 { 00222 return ndbCompatible_full(ownVersion, otherVersion); 00223 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 244 of file version.c.
References ndbCompatible_upgrade().
Referenced by Qmgr::execCM_REGCONF(), and Qmgr::execCM_REGREQ().
00245 { 00246 return ndbCompatible_upgrade(ownVersion, otherVersion); 00247 }
Here is the call graph for this function:

Here is the caller graph for this function:

| Uint32 ndbGetOwnVersion | ( | ) |
Definition at line 145 of file version.c.
References NDB_VERSION_D, and ndbOwnVersionTesting.
Referenced by Cmvmi::Cmvmi(), Tsman::execFSREADCONF(), Tsman::execFSWRITEREQ(), Lgman::execFSWRITEREQ(), and ndbPrintVersion().
00146 { 00147 #ifdef HAVE_NDB_SETVERSION 00148 if (ndbOwnVersionTesting == 0) 00149 return NDB_VERSION_D; 00150 else 00151 return ndbOwnVersionTesting; 00152 #else 00153 return NDB_VERSION_D; 00154 #endif 00155 }
Here is the caller graph for this function:

| void ndbPrintVersion | ( | ) |
Definition at line 136 of file version.c.
References getBuild(), getMajor(), getMinor(), and ndbGetOwnVersion().
00137 { 00138 printf("Version: %u.%u.%u\n", 00139 getMajor(ndbGetOwnVersion()), 00140 getMinor(ndbGetOwnVersion()), 00141 getBuild(ndbGetOwnVersion())); 00142 }
Here is the call graph for this function:

1.4.7

