Skip to content

Commit 30f1d2f

Browse files
committed
Remove useless method LatchCounter::sum_deregister()
1 parent d04e1d4 commit 30f1d2f

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

storage/innobase/include/sync0policy.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All Rights Reserved.
4-
Copyright (c) 2017, MariaDB Corporation.
4+
Copyright (c) 2017, 2018, MariaDB Corporation.
55
66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -454,14 +454,7 @@ class BlockMutexPolicy
454454
void destroy()
455455
UNIV_NOTHROW
456456
{
457-
latch_meta_t& meta = sync_latch_get_meta(m_id);
458-
459-
ut_ad(meta.get_id() == m_id);
460-
461-
meta.get_counter()->sum_deregister(m_count);
462-
463457
m_count = NULL;
464-
465458
ut_d(MutexDebug<MutexType>::destroy());
466459
}
467460

storage/innobase/include/sync0types.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
4-
Copyright (c) 2017, MariaDB Corporation.
4+
Copyright (c) 2017, 2018, MariaDB Corporation.
55
66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -640,14 +640,6 @@ class LatchCounter {
640640
return(count);
641641
}
642642

643-
/** Deregister the count. We don't do anything
644-
@param[in] count The count instance to deregister */
645-
void sum_deregister(Count* count)
646-
UNIV_NOTHROW
647-
{
648-
/* Do nothing */
649-
}
650-
651643
/** Register a single instance counter */
652644
void single_register(Count* count)
653645
UNIV_NOTHROW

0 commit comments

Comments
 (0)