Remove some unused code from older version of HS per Heikki, 21 Sep
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 25 Sep 2009 11:58:33 +0000 (12:58 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 25 Sep 2009 11:58:33 +0000 (12:58 +0100)
src/backend/storage/ipc/procarray.c
src/include/access/nbtree.h
src/include/storage/procarray.h

index 28d1cf0745ad3e5f8274ea54f528605083835312..211588a8a5c3385d26c7af21d4b61c33894eba0f 100644 (file)
@@ -1502,7 +1502,7 @@ HaveTransactionsInCommit(TransactionId *xids, int nxids)
 
 /*
  * BackendPidGetProc -- get a backend's PGPROC given its PID
- *
+ *     
  * Returns NULL if not found.  Note that it is up to the caller to be
  * sure that the question remains meaningful for long enough for the
  * answer to be used ...
@@ -1535,41 +1535,6 @@ BackendPidGetProc(int pid)
        return result;
 }
 
-/*
- * BackendXidGetProc -- get a backend's PGPROC given its XID
- *
- * Returns NULL if not found.  Note that it is up to the caller to be
- * sure that the question remains meaningful for long enough for the
- * answer to be used ...
- */
-PGPROC *
-BackendXidGetProc(TransactionId xid)
-{
-       PGPROC     *result = NULL;
-       ProcArrayStruct *arrayP = procArray;
-       int                     index;
-
-       if (xid == InvalidTransactionId)        /* never match invalid xid */
-               return 0;
-
-       LWLockAcquire(ProcArrayLock, LW_SHARED);
-
-       for (index = 0; index < arrayP->numProcs; index++)
-       {
-               PGPROC     *proc = arrayP->procs[index];
-
-               if (proc->xid == xid)
-               {
-                       result = proc;
-                       break;
-               }
-       }
-
-       LWLockRelease(ProcArrayLock);
-
-       return result;
-}
-
 /*
  * BackendXidGetPid -- get a backend's pid given its XID
  *
index bfcb75ce80c244b93530d130adeb227006327095..91b4e23a432fef2abbd423ec3ec518129559395f 100644 (file)
@@ -536,10 +536,6 @@ typedef BTScanOpaqueData *BTScanOpaque;
 #define SK_BT_DESC                     (INDOPTION_DESC << SK_BT_INDOPTION_SHIFT)
 #define SK_BT_NULLS_FIRST      (INDOPTION_NULLS_FIRST << SK_BT_INDOPTION_SHIFT)
 
-/* XXX probably needs new RMgr call to do this cleanly */
-extern bool btree_is_cleanup_record(uint8 info);
-extern bool btree_needs_cleanup_lock(uint8 info);
-
 /*
  * prototypes for functions in nbtree.c (external entry points for btree)
  */
index b8827957a604f322094d9db805bd27a942821827..36d5d52ae73a6a17b91f728ad353cb1190ee7190 100644 (file)
@@ -54,7 +54,6 @@ extern int    GetTransactionsInCommit(TransactionId **xids_p);
 extern bool HaveTransactionsInCommit(TransactionId *xids, int nxids);
 
 extern PGPROC *BackendPidGetProc(int pid);
-extern PGPROC *BackendXidGetProc(TransactionId xid);
 extern int     BackendXidGetPid(TransactionId xid);
 extern bool IsBackendPid(int pid);