|
|
|
@ -32,7 +32,7 @@ static ssize_t tdeheap_xlog_seg_read(int fd, void *buf, size_t count, off_t offs |
|
|
|
|
TimeLineID tli, XLogSegNo segno, int segSize); |
|
|
|
|
static ssize_t tdeheap_xlog_seg_write(int fd, const void *buf, size_t count, |
|
|
|
|
off_t offset, TimeLineID tli, |
|
|
|
|
XLogSegNo segno); |
|
|
|
|
XLogSegNo segno, int segSize); |
|
|
|
|
|
|
|
|
|
static const XLogSmgr tde_xlog_smgr = { |
|
|
|
|
.seg_read = tdeheap_xlog_seg_read, |
|
|
|
@ -217,7 +217,7 @@ TDEXLogSmgrInitWrite(bool encrypt_xlog) |
|
|
|
|
|
|
|
|
|
static ssize_t |
|
|
|
|
tdeheap_xlog_seg_write(int fd, const void *buf, size_t count, off_t offset, |
|
|
|
|
TimeLineID tli, XLogSegNo segno) |
|
|
|
|
TimeLineID tli, XLogSegNo segno, int segSize) |
|
|
|
|
{ |
|
|
|
|
#ifndef FRONTEND |
|
|
|
|
|
|
|
|
@ -231,7 +231,7 @@ tdeheap_xlog_seg_write(int fd, const void *buf, size_t count, off_t offset, |
|
|
|
|
{ |
|
|
|
|
XLogRecPtr lsn; |
|
|
|
|
|
|
|
|
|
XLogSegNoOffsetToRecPtr(segno, offset, wal_segment_size, lsn); |
|
|
|
|
XLogSegNoOffsetToRecPtr(segno, offset, segSize, lsn); |
|
|
|
|
|
|
|
|
|
pg_tde_wal_last_key_set_lsn(lsn, EncryptionState->db_map_path); |
|
|
|
|
EncryptionKey.start_lsn = lsn; |
|
|
|
|