Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ef254efc
Commit
ef254efc
authored
Sep 27, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Simplify sync_array_object_signalled()
parent
363da421
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
storage/innobase/include/sync0arr.h
storage/innobase/include/sync0arr.h
+4
-5
storage/innobase/sync/sync0arr.cc
storage/innobase/sync/sync0arr.cc
+1
-10
No files found.
storage/innobase/include/sync0arr.h
View file @
ef254efc
/*****************************************************************************
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 20
18
, MariaDB Corporation.
Copyright (c) 2015, 20
20
, 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
...
...
@@ -79,10 +79,9 @@ sync_array_free_cell(
sync_array_t
*
arr
,
/*!< in: wait array */
sync_cell_t
*&
cell
);
/*!< in: the reserved cell */
/**********************************************************************//**
Note that one of the wait objects was signalled. */
void
sync_array_object_signalled
();
/** count of how many times an object has been signalled */
extern
ulint
sg_count
;
#define sync_array_object_signalled() ++sg_count
/**********************************************************************//**
Prints warnings of long semaphore waits to stderr.
...
...
storage/innobase/sync/sync0arr.cc
View file @
ef254efc
...
...
@@ -169,7 +169,7 @@ mutexes and read-write locks */
sync_array_t
**
sync_wait_array
;
/** count of how many times an object has been signalled */
static
ulint
sg_count
;
ulint
sg_count
;
#define sync_array_exit(a) mutex_exit(&(a)->mutex)
#define sync_array_enter(a) mutex_enter(&(a)->mutex)
...
...
@@ -859,15 +859,6 @@ sync_array_detect_deadlock(
}
#endif
/* UNIV_DEBUG */
/**********************************************************************//**
Increments the signalled count. */
void
sync_array_object_signalled
()
/*=========================*/
{
++
sg_count
;
}
/**********************************************************************//**
Prints warnings of long semaphore waits to stderr.
@return TRUE if fatal semaphore wait threshold was exceeded */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment