Bug #81149 test_event compilation failure on Windows
Submitted: 20 Apr 2016 6:48 Modified: 28 Apr 2016 13:28
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.2 OS:Any
Assigned to: CPU Architecture:Any

[20 Apr 2016 6:48] Magnus Blåudd
Description:

7.5\storage\ndb\test\ndbapi\test_event.cpp(5472): error C2039: 'fd': is not a member of 'ndb_socket_t'

Compilation error occurs because of non portable code which assigned to ndb_socket_t::fd which is called ndb_socket_t::s on Windows in order to catch errors like this.

How to repeat:
Build the test programs for MySQL Cluster with

cmake -DWITH_NDB_TEST=1

Unfortunately they are not built by default on Windows currently.

Suggested fix:
Add function for creating a ndb_socket_t from ndb_native_socket_t and use instead of #ifdefs. There are several places where same construct is used and all of them should be replaced by using the new function.
[28 Apr 2016 13:28] Jon Stephens
Fixed in NDB 7.5.2. Affects testing only, no changelog entry required.

Closed.