1
0
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:
Alvaro Herrera
2012-12-27 18:33:03 -03:00
parent eaa1f7220a
commit 24eca7977e
2 changed files with 5 additions and 5 deletions

View File

@ -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 */