Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit375d915

Browse files
committed
Try fix size.
1 parent205d0a0 commit375d915

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
328328
*/
329329
if (current.backup_mode==BACKUP_MODE_DIFF_PAGE||
330330
current.backup_mode==BACKUP_MODE_DIFF_PTRACK)
331-
current.data_bytes+=file->read_size;
331+
current.data_bytes+=file->write_size;
332332
elseif (current.backup_mode==BACKUP_MODE_FULL)
333333
current.data_bytes+=file->size;
334334
}

‎data.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,14 @@ backup_data_file(const char *from_root, const char *to_root,
213213
returncopy_file(from_root,to_root,file);
214214
}
215215

216-
file->read_size+=read_len;
216+
217217

218218
/* if the page has not been modified since last backup, skip it */
219219
if (lsn&& !XLogRecPtrIsInvalid(page_lsn)&&page_lsn<*lsn)
220220
continue;
221221

222+
file->read_size+=read_len;
223+
222224
upper_offset=header.hole_offset+header.hole_length;
223225
upper_length=BLCKSZ-upper_offset;
224226

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp