Remove useless pointer update in ginxlog.c
authorMichael Paquier <michael@paquier.xyz>
Thu, 2 Oct 2025 08:16:20 +0000 (17:16 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 2 Oct 2025 08:16:20 +0000 (17:16 +0900)
Oversight in 2c03216d8311, when the redo code of GIN got refactored for
the new WAL format where block information has been standardized, as the
payload data got tracked for each block after the change, and not in the
whole record.  This is just a cleanup.

Author: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru>
Discussion: https://postgr.es/m/CALdSSPgnAt5L=D_xGXRXLYO5FK1H31_eYEESxdU1n-r4g+6GqA@mail.gmail.com

src/backend/access/gin/ginxlog.c

index 4478e92820494349195268a921826abaaf1872a1..fa293ee79d59ee85ddb549adfe9c0fa33c785dd7 100644 (file)
@@ -368,7 +368,6 @@ ginRedoInsert(XLogReaderState *record)
 #endif
        payload += sizeof(BlockIdData);
        rightChildBlkno = BlockIdGetBlockNumber((BlockId) payload);
-       payload += sizeof(BlockIdData);
 
        ginRedoClearIncompleteSplit(record, 1);
    }