mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Assign InvalidXLogRecPtr instead of MemSet(0)
For consistency. Author: Andres Freund
This commit is contained in:
@ -1115,7 +1115,7 @@ InitWalSenderSlot(void)
|
||||
* Found a free slot. Reserve it for us.
|
||||
*/
|
||||
walsnd->pid = MyProcPid;
|
||||
MemSet(&walsnd->sentPtr, 0, sizeof(XLogRecPtr));
|
||||
walsnd->sentPtr = InvalidXLogRecPtr;
|
||||
walsnd->state = WALSNDSTATE_STARTUP;
|
||||
SpinLockRelease(&walsnd->mutex);
|
||||
/* don't need the lock anymore */
|
||||
|
Reference in New Issue
Block a user