aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/async.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/async.c')
-rw-r--r--src/backend/commands/async.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c
index 774b26fd2c4..cb341365df4 100644
--- a/src/backend/commands/async.c
+++ b/src/backend/commands/async.c
@@ -1918,7 +1918,6 @@ static void
asyncQueueReadAllNotifications(void)
{
volatile QueuePosition pos;
- QueuePosition oldpos;
QueuePosition head;
Snapshot snapshot;
@@ -1933,7 +1932,7 @@ asyncQueueReadAllNotifications(void)
LWLockAcquire(NotifyQueueLock, LW_SHARED);
/* Assert checks that we have a valid state entry */
Assert(MyProcPid == QUEUE_BACKEND_PID(MyBackendId));
- pos = oldpos = QUEUE_BACKEND_POS(MyBackendId);
+ pos = QUEUE_BACKEND_POS(MyBackendId);
head = QUEUE_HEAD;
LWLockRelease(NotifyQueueLock);