diff options
Diffstat (limited to 'storage/perfschema/table_esms_by_user_by_event_name.cc')
-rw-r--r-- | storage/perfschema/table_esms_by_user_by_event_name.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/storage/perfschema/table_esms_by_user_by_event_name.cc b/storage/perfschema/table_esms_by_user_by_event_name.cc index d65a255e280..1434966204f 100644 --- a/storage/perfschema/table_esms_by_user_by_event_name.cc +++ b/storage/perfschema/table_esms_by_user_by_event_name.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 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 @@ -11,7 +11,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ /** @file storage/perfschema/table_esms_by_user_by_event_name.cc @@ -270,6 +270,9 @@ void table_esms_by_user_by_event_name pfs_lock lock; m_row_exists= false; + if (klass->is_mutable()) + return; + user->m_lock.begin_optimistic_lock(&lock); if (m_row.m_user.make_row(user)) |