diff options
author | unknown <malff/marcsql@weblab.(none)> | 2007-03-01 16:39:00 -0700 |
---|---|---|
committer | unknown <malff/marcsql@weblab.(none)> | 2007-03-01 16:39:00 -0700 |
commit | 2e34602392b0a97b7cb4b2eb348d78ad75e84cdc (patch) | |
tree | f5a2345887116e148b0d64250f0a0d7d2f93ebd2 | |
parent | 38a8283c6d6bf3b36547c8474e9411b800e3ba5f (diff) | |
download | mariadb-git-2e34602392b0a97b7cb4b2eb348d78ad75e84cdc.tar.gz |
Fixed compiler warnings
server-tools/instance-manager/angel.cc:
Compiler warnings
sql/event_queue.cc:
Compier warnings
sql/event_scheduler.cc:
Compiler warnings
sql/events.cc:
Compiler warnings
-rw-r--r-- | server-tools/instance-manager/angel.cc | 2 | ||||
-rw-r--r-- | sql/event_queue.cc | 4 | ||||
-rw-r--r-- | sql/event_scheduler.cc | 16 | ||||
-rw-r--r-- | sql/events.cc | 2 |
4 files changed, 11 insertions, 13 deletions
diff --git a/server-tools/instance-manager/angel.cc b/server-tools/instance-manager/angel.cc index 7c90f8915da..a1892112dc8 100644 --- a/server-tools/instance-manager/angel.cc +++ b/server-tools/instance-manager/angel.cc @@ -349,8 +349,6 @@ static int angel_main_loop() int Angel::main() { - int ret_status; - log_info("Angel: started."); /* Open log file. */ diff --git a/sql/event_queue.cc b/sql/event_queue.cc index 7b06e8b2cf5..296c30506f6 100644 --- a/sql/event_queue.cc +++ b/sql/event_queue.cc @@ -201,7 +201,7 @@ void Event_queue::create_event(THD *thd, Event_queue_element *new_element) { DBUG_ENTER("Event_queue::create_event"); - DBUG_PRINT("enter", ("thd=0x%lx et=%s.%s",thd, + DBUG_PRINT("enter", ("thd: 0x%lx et=%s.%s", (long) thd, new_element->dbname.str, new_element->name.str)); if (new_element->status == Event_queue_element::DISABLED) @@ -209,7 +209,7 @@ Event_queue::create_event(THD *thd, Event_queue_element *new_element) else { new_element->compute_next_execution_time(); - DBUG_PRINT("info", ("new event in the queue 0x%lx", new_element)); + DBUG_PRINT("info", ("new event in the queue: 0x%lx", (long) new_element)); LOCK_QUEUE_DATA(); queue_insert_safe(&queue, (byte *) new_element); diff --git a/sql/event_scheduler.cc b/sql/event_scheduler.cc index 8821e6a0305..64bba756be9 100644 --- a/sql/event_scheduler.cc +++ b/sql/event_scheduler.cc @@ -289,9 +289,8 @@ Event_worker_thread::run(THD *thd, Event_queue_element_for_exec *event) res= post_init_event_thread(thd); DBUG_ENTER("Event_worker_thread::run"); - DBUG_PRINT("info", ("Baikonur, time is %d, BURAN reporting and operational." - "THD=0x%lx", time(NULL), thd)); - + DBUG_PRINT("info", ("Time is %ld, THD: 0x%lx", + (long) time(NULL), (long) thd)); if (res) goto end; @@ -349,7 +348,7 @@ end: */ events_facade->drop_event(thd, event->dbname, event->name, FALSE); } - DBUG_PRINT("info", ("BURAN %s.%s is landing!", event->dbname.str, + DBUG_PRINT("info", ("Done with Event %s.%s", event->dbname.str, event->name.str)); delete event; @@ -522,7 +521,8 @@ Event_scheduler::run(THD *thd) break; } - DBUG_PRINT("info", ("get_top returned job_data=0x%lx", event_name)); + DBUG_PRINT("info", ("get_top_for_execution_if_time returned " + "event_name=0x%lx", (long) event_name)); if (event_name) { if ((res= execute_top(thd, event_name))) @@ -571,7 +571,7 @@ Event_scheduler::execute_top(THD *thd, Event_queue_element_for_exec *event_name) pre_init_event_thread(new_thd); new_thd->system_thread= SYSTEM_THREAD_EVENT_WORKER; event_name->thd= new_thd; - DBUG_PRINT("info", ("BURAN %s@%s ready for start t-3..2..1..0..ignition", + DBUG_PRINT("info", ("Event %s@%s ready for start", event_name->dbname.str, event_name->name.str)); /* Major failure */ @@ -581,11 +581,11 @@ Event_scheduler::execute_top(THD *thd, Event_queue_element_for_exec *event_name) ++started_events; - DBUG_PRINT("info", ("Launch succeeded. BURAN is in THD: 0x%lx", (long) new_thd)); + DBUG_PRINT("info", ("Event is in THD: 0x%lx", (long) new_thd)); DBUG_RETURN(FALSE); error: - DBUG_PRINT("error", ("Baikonur, we have a problem! res: %d", res)); + DBUG_PRINT("error", ("Event_scheduler::execute_top() res: %d", res)); if (new_thd) { new_thd->proc_info= "Clearing"; diff --git a/sql/events.cc b/sql/events.cc index 425e288dfb7..07d248c7b11 100644 --- a/sql/events.cc +++ b/sql/events.cc @@ -923,7 +923,7 @@ Events::load_events_from_db(THD *thd) bool clean_the_queue= TRUE; DBUG_ENTER("Events::load_events_from_db"); - DBUG_PRINT("enter", ("thd=0x%lx", thd)); + DBUG_PRINT("enter", ("thd: 0x%lx", (long) thd)); if ((ret= db_repository->open_event_table(thd, TL_READ, &table))) { |