diff options
Diffstat (limited to 'storage/perfschema/table_esms_by_thread_by_event_name.cc')
-rw-r--r-- | storage/perfschema/table_esms_by_thread_by_event_name.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/perfschema/table_esms_by_thread_by_event_name.cc b/storage/perfschema/table_esms_by_thread_by_event_name.cc index fccdf5dea60..3f3117d6dc1 100644 --- a/storage/perfschema/table_esms_by_thread_by_event_name.cc +++ b/storage/perfschema/table_esms_by_thread_by_event_name.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -272,6 +272,9 @@ void table_esms_by_thread_by_event_name pfs_lock lock; m_row_exists= false; + if (klass->is_mutable()) + return; + /* Protect this reader against a thread termination */ thread->m_lock.begin_optimistic_lock(&lock); |