codership / mysql-wsrep

wsrep API patch for MySQL server
Other
64 stars 34 forks source link

Regression: sql/rpl_slave.cc:4378:66: error: 'WSREP_DEBUG' was not declared in this scope #200

Open philip-galera opened 9 years ago

philip-galera commented 9 years ago
/home/vagrant/mysql-wsrep/sql/rpl_slave.cc: In function 'int exec_relay_log_event(THD*, Relay_log_info*)':
/home/vagrant/mysql-wsrep/sql/rpl_slave.cc:4378:66: error: 'WSREP_DEBUG' was not declared in this scope
     WSREP_DEBUG("apply_event_and_update_pos result: %d", exec_res);
                                                                  ^

introduced by this change:

commit a35c12fcfb47a93383041cc555cc0b7909fc3115
Author: sjaakola <seppo.jaakola@iki.fi>
Date:   Sun Sep 6 22:35:23 2015 +0300

    refs codership/mysql-wsrep#181
    - Galera related errors in mysql slave applying will now cause slave to abort
@@ -4365,6 +4373,7 @@ static int exec_relay_log_event(THD* thd, Relay_log_info* rli)
         Hence deferred events wont be deleted here.
         They will be deleted in Deferred_log_events::rewind() funciton.
     */
+    WSREP_DEBUG("apply_event_and_update_pos result: %d", exec_res);
     if (*ptr_ev)
     {
       DBUG_ASSERT(*ptr_ev == ev); // event remains to belong to Coordinator

I guess

philip-galera commented 9 years ago

No idea why this works everywhere else but in the nightly build. Furthermore, it started failing in nightly without any changes in the code between a successful run and an unsuccessful one.