MCPcopy Create free account
hub / github.com/Shannon-Data/ShannonBase / insertErrorInNode

Method insertErrorInNode

storage/ndb/test/src/NdbRestarter.cpp:765–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765int NdbRestarter::insertErrorInNode(int _nodeId, int _error) {
766 if (!isConnected()) return -1;
767
768 ndb_mgm_reply reply;
769 reply.return_code = 0;
770
771 if (ndb_mgm_insert_error(handle, _nodeId, _error, &reply) == -1) {
772 MGMERR(handle);
773 g_err << "Could not insert error in node with id = " << _nodeId << endl;
774 }
775 if (reply.return_code != 0) {
776 g_err << "Error: " << reply.message << endl;
777 }
778 return 0;
779}
780
781int NdbRestarter::insertErrorInNodes(const int *_nodes, int _num_nodes,
782 int _error) {

Callers 15

runSystemRestart10Function · 0.80
runBug18385Function · 0.80
runBug21536Function · 0.80
runBug27434Function · 0.80
runBug29167Function · 0.80
runBug46412Function · 0.80
runBug48436Function · 0.80
runBug54611Function · 0.80
runBug56961Function · 0.80
runCheckLaggardShutdownFunction · 0.80

Calls 1

ndb_mgm_insert_errorFunction · 0.85

Tested by

no test coverage detected