18 #ifndef NDB_WAITER_HPP
19 #define NDB_WAITER_HPP
21 #include <ndb_global.h>
27 WAIT_NODE_FAILURE = 1,
38 WAIT_GET_TAB_INFO_REQ = 11,
39 WAIT_CREATE_TAB_REQ = 12,
40 WAIT_DROP_TAB_REQ = 13,
41 WAIT_ALTER_TAB_REQ = 14,
42 WAIT_CREATE_INDX_REQ = 15,
43 WAIT_DROP_INDX_REQ = 16,
44 WAIT_LIST_TABLES_CONF = 17,
45 WAIT_SCHEMA_TRANS = 18
53 void signal(Uint32 state);
54 void nodeFail(Uint32 node);
56 void clear_wait_state() { m_state = NO_WAIT; }
57 Uint32 get_wait_state() {
return m_state; }
58 void set_wait_state(Uint32 s) { m_state = s;}
60 void set_state(Uint32 state) { m_state= state; }
61 void set_node(Uint32 node) { m_node= node; }
62 Uint32 get_state() {
return m_state; }
71 #include "trp_client.hpp"
75 NdbWaiter::nodeFail(Uint32 aNodeId)
77 if (m_state != NO_WAIT && m_node == aNodeId)
79 m_state = WAIT_NODE_FAILURE;
86 NdbWaiter::signal(Uint32 state)