* Read the control file, set respective GUCs. * * This is to be called during startup, including a crash recovery cycle, * unless in bootstrap mode, where no control file yet exists. As there's no * usable shared memory yet (its sizing can depend on the contents of the * control file!), first store the contents in local memory. XLOGShmemInit() * will then copy it to shared memory later. *
| 5193 | * reset case, there's a dangling pointer into old shared memory), or not. |
| 5194 | */ |
| 5195 | void |
| 5196 | LocalProcessControlFile(bool reset) |
| 5197 | { |
| 5198 | Assert(reset || ControlFile == NULL); |
| 5199 | ControlFile = palloc(sizeof(ControlFileData)); |
| 5200 | ReadControlFile(); |
| 5201 | } |
| 5202 | |
| 5203 | /* |
| 5204 | * Initialization of shared memory for XLOG |
no test coverage detected