Skip to content

Commit

Permalink
MDEV-8492: Windows builds fail on current 10.1
Browse files Browse the repository at this point in the history
In non-wsrep builds, wsrep_running_threads should be defined to (0).
  • Loading branch information
Nirbhay Choubey committed Jul 20, 2015
1 parent c57edf3 commit 6d3bd65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1901,13 +1901,11 @@ static void __cdecl kill_server(int sig_ptr)
}
#endif

#ifdef WITH_WSREP
/* Stop wsrep threads in case they are running. */
if (wsrep_running_threads > 0)
{
wsrep_stop_replication(NULL);
}
#endif

close_connections();

Expand Down
1 change: 1 addition & 0 deletions sql/wsrep_mysqld.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ int wsrep_create_trigger_query(THD *thd, uchar** buf, size_t* buf_len);
#define wsrep_replicate_myisam (0)
#define wsrep_thr_init() do {} while(0)
#define wsrep_thr_deinit() do {} while(0)
#define wsrep_running_threads (0)

#endif /* WITH_WSREP */
#endif /* WSREP_MYSQLD_H */

0 comments on commit 6d3bd65

Please sign in to comment.