[MDEV-28049] Error on compiling of trx0purge.cc Created: 2022-03-13  Updated: 2022-03-14  Resolved: 2022-03-14

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: N/A
Fix Version/s: 10.9.0, 10.6.8, 10.7.4, 10.8.3

Type: Bug Priority: Blocker
Reporter: Dmitry Shulga Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-27935 Enable performance_schema profiling f... Closed

 Description   

Building MariaDB server fails on compiling of the file storage/innobase/trx/trx0purge.cc

[ 65%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/trx/trx0purge.cc.o
[ 66%] Linking CXX static library libperfschema.a
server-10.8/storage/innobase/trx/trx0purge.cc:122:33: error: too few arguments to function call, expected 2, have 0
                purge_sys.rseg->latch.rd_lock();
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
server-10.8/storage/innobase/include/srw_lock.h:480:8: note: 'rd_lock' declared here
  void rd_lock(const char *file, unsigned line)
       ^
server-10.8/storage/innobase/trx/trx0purge.cc:639:26: error: too few arguments to function call, expected 2, have 0
      rseg.latch.rd_lock();
      ~~~~~~~~~~~~~~~~~~ ^
server-10.8/storage/innobase/include/srw_lock.h:480:8: note: 'rd_lock' declared here
  void rd_lock(const char *file, unsigned line)
       ^



 Comments   
Comment by Marko Mäkelä [ 2022-03-14 ]

This only affected systems where a futex-like interface is not available (SUX_LOCK_GENERIC).

Generated at Thu Feb 08 09:57:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.