Skip to content

Commit c32dcae

Browse files
committed
Adjust an outdated comment.
os_sync_free(), which hid resource leaks, was removed in MySQL 5.7.
1 parent c0fb7b4 commit c32dcae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

storage/innobase/include/sync0debug.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All Rights Reserved.
4+
Copyright (c) 2017, MariaDB Corporation. All Rights Reserved.
45
56
Portions of this file contain modifications contributed and copyrighted by
67
Google, Inc. Those modifications are gratefully acknowledged and are described
@@ -39,7 +40,7 @@ Created 2012-08-21 Sunny Bains
3940
void
4041
sync_check_init();
4142

42-
/** Frees the resources in synchronization data structures. */
43+
/** Free the InnoDB synchronization data structures. */
4344
void
4445
sync_check_close();
4546

storage/innobase/sync/sync0debug.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 2014, 2016, Oracle and/or its affiliates. All Rights Reserved.
4+
Copyright (c) 2017, MariaDB Corporation. All Rights Reserved.
45
56
Portions of this file contain modifications contributed and copyrighted by
67
Google, Inc. Those modifications are gratefully acknowledged and are described
@@ -1787,8 +1788,7 @@ sync_check_init()
17871788
sync_array_init(OS_THREAD_MAX_N);
17881789
}
17891790

1790-
/** Frees the resources in InnoDB's own synchronization data structures. Use
1791-
os_sync_free() after calling this. */
1791+
/** Free the InnoDB synchronization data structures. */
17921792
void
17931793
sync_check_close()
17941794
{

0 commit comments

Comments
 (0)