summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-04-07 16:44:43 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-04-07 16:44:43 -0400
commita25ef7a5f68728f7f78f798a98c26b773c45937e (patch)
tree29737c2332b8c7aeba44c96b17c16ea1e46529f5
parentd24ac36f4fb99824425c81a64a5e36f3e91a7656 (diff)
Remove useless variable to suppress compiler warning.
-rw-r--r--src/backend/catalog/index.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c
index 5fae488c745..3fd0e604577 100644
--- a/src/backend/catalog/index.c
+++ b/src/backend/catalog/index.c
@@ -1292,8 +1292,7 @@ index_drop(Oid indexId, bool concurrent)
bool hasexprs;
LockRelId heaprelid,
indexrelid;
- LOCKTAG heaplocktag,
- indexlocktag;
+ LOCKTAG heaplocktag;
VirtualTransactionId *old_lockholders;
Form_pg_index indexForm;
@@ -1366,7 +1365,6 @@ index_drop(Oid indexId, bool concurrent)
heap_close(userHeapRelation, NoLock);
indexrelid = userIndexRelation->rd_lockInfo.lockRelId;
- SET_LOCKTAG_RELATION(indexlocktag, indexrelid.dbId, indexrelid.relId);
index_close(userIndexRelation, NoLock);
/*