OSDN Git Service

Code cleanup for InitProcGlobal.
authorRobert Haas <rhaas@postgresql.org>
Sun, 12 Jun 2011 04:07:04 +0000 (00:07 -0400)
committerRobert Haas <rhaas@postgresql.org>
Sun, 12 Jun 2011 04:07:04 +0000 (00:07 -0400)
commit47ebcecc3ef862c6ad961539638123af63407ac9
tree46fe74b97025bc43a44e81c0f1b904f8adb3c1fd
parentc878cbe158b6cc20fe5dc65481885f3b2758f432
Code cleanup for InitProcGlobal.

The old code creates three separate arrays when only one is needed,
using two different shmem allocation functions for no obvious reason.
It also strangely splits up the initialization of AuxilaryProcs
between the top and bottom of the function to no evident purpose.

Review by Tom Lane.
src/backend/storage/lmgr/proc.c