Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
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
Abuhujair Javed
Postgres FD Implementation
Commits
bed756a8
Commit
bed756a8
authored
Mar 26, 2015
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress some unused-variable complaints in new LOCK_DEBUG code.
Jeff Janes
parent
656ea810
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/lwlock.c
+6
-5
No files found.
src/backend/storage/lmgr/lwlock.c
View file @
bed756a8
...
@@ -207,7 +207,8 @@ LOG_LWDEBUG(const char *where, LWLock *lock, const char *msg)
...
@@ -207,7 +207,8 @@ LOG_LWDEBUG(const char *where, LWLock *lock, const char *msg)
ereport
(
LOG
,
ereport
(
LOG
,
(
errhidestmt
(
true
),
(
errhidestmt
(
true
),
errhidecontext
(
true
),
errhidecontext
(
true
),
errmsg
(
"%s(%s %d): %s"
,
where
,
T_NAME
(
lock
),
T_ID
(
lock
),
msg
)));
errmsg
(
"%s(%s %d): %s"
,
where
,
T_NAME
(
lock
),
T_ID
(
lock
),
msg
)));
}
}
}
}
...
@@ -879,7 +880,7 @@ LWLockDequeueSelf(LWLock *lock)
...
@@ -879,7 +880,7 @@ LWLockDequeueSelf(LWLock *lock)
#ifdef LOCK_DEBUG
#ifdef LOCK_DEBUG
{
{
/* not waiting anymore */
/* not waiting anymore */
uint32
nwaiters
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
uint32
nwaiters
PG_USED_FOR_ASSERTS_ONLY
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
}
}
#endif
#endif
...
@@ -1045,7 +1046,7 @@ LWLockAcquireCommon(LWLock *lock, LWLockMode mode, uint64 *valptr, uint64 val)
...
@@ -1045,7 +1046,7 @@ LWLockAcquireCommon(LWLock *lock, LWLockMode mode, uint64 *valptr, uint64 val)
#ifdef LOCK_DEBUG
#ifdef LOCK_DEBUG
{
{
/* not waiting anymore */
/* not waiting anymore */
uint32
nwaiters
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
uint32
nwaiters
PG_USED_FOR_ASSERTS_ONLY
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
}
}
#endif
#endif
...
@@ -1202,7 +1203,7 @@ LWLockAcquireOrWait(LWLock *lock, LWLockMode mode)
...
@@ -1202,7 +1203,7 @@ LWLockAcquireOrWait(LWLock *lock, LWLockMode mode)
#ifdef LOCK_DEBUG
#ifdef LOCK_DEBUG
{
{
/* not waiting anymore */
/* not waiting anymore */
uint32
nwaiters
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
uint32
nwaiters
PG_USED_FOR_ASSERTS_ONLY
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
}
}
#endif
#endif
...
@@ -1403,7 +1404,7 @@ LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval)
...
@@ -1403,7 +1404,7 @@ LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval)
#ifdef LOCK_DEBUG
#ifdef LOCK_DEBUG
{
{
/* not waiting anymore */
/* not waiting anymore */
uint32
nwaiters
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
uint32
nwaiters
PG_USED_FOR_ASSERTS_ONLY
=
pg_atomic_fetch_sub_u32
(
&
lock
->
nwaiters
,
1
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
Assert
(
nwaiters
<
MAX_BACKENDS
);
}
}
#endif
#endif
...
...
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