diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-01-04 13:47:27 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-01-04 13:47:27 +0200 |
commit | 3dabe637ca972d9139819848449f76867dd0f7ef (patch) | |
tree | c59f107178d7b225361081a6afd4920ad84b957d /storage/innobase/trx/trx0trx.cc | |
parent | 6268bdadf70609953c57f62e051defd8f0041046 (diff) | |
download | mariadb-git-3dabe637ca972d9139819848449f76867dd0f7ef.tar.gz |
Clarify some comments
Diffstat (limited to 'storage/innobase/trx/trx0trx.cc')
-rw-r--r-- | storage/innobase/trx/trx0trx.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/storage/innobase/trx/trx0trx.cc b/storage/innobase/trx/trx0trx.cc index 50a78adcf53..7ece8a40540 100644 --- a/storage/innobase/trx/trx0trx.cc +++ b/storage/innobase/trx/trx0trx.cc @@ -1,7 +1,7 @@ /***************************************************************************** Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2015, 2020, MariaDB Corporation. +Copyright (c) 2015, 2021, MariaDB Corporation. 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 the Free Software @@ -1323,10 +1323,8 @@ inline void trx_t::commit_in_memory(const mtr_t *mtr) ut_a(!is_recovered); ut_ad(!rsegs.m_redo.rseg); - /* Note: We are asserting without holding the lock mutex. But - that is OK because this transaction is not waiting and cannot - be rolled back and no new locks can (or should) be added - because it is flagged as a non-locking read-only transaction. */ + /* Note: We do not have to hold any lock_sys latch here, because + this is a non-locking transaction. */ ut_a(UT_LIST_GET_LEN(lock.trx_locks) == 0); /* This state change is not protected by any mutex, therefore |