Skip to content

Commit d676097

Browse files
author
Ole John Aske
committed
Bug#35809916 NdbMgmd::close() fails to close the m_event_socket
testNodeRestart -n GCPStopFalsePositive hit an assert due to a NdbSocket object still having an open file descrioptor when it was destructed. Patch add missing NdbSocket::close() on the m_event_socket member in NdbMgmd::close() Change-Id: I59601336908e42fddc61ff84a2e9a7732218c06a
1 parent 55f103e commit d676097

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/ndb/test/include/NdbMgmd.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2021, Oracle and/or its affiliates.
1+
/* Copyright (c) 2008, 2023, Oracle and/or its affiliates.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License, version 2.0,
@@ -85,6 +85,7 @@ class NdbMgmd {
8585
ndb_mgm_destroy_handle(&m_handle);
8686
m_handle = NULL;
8787
}
88+
m_event_socket.close();
8889
}
8990

9091
NdbMgmHandle handle(void) const {

0 commit comments

Comments
 (0)