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

Commit431ba7b

Browse files
committed
pg_basebackup: Refactor code for reading COPY and tar data.
Add a new function ReceiveCopyData that does just that, taking acallback as an argument to specify what should be done with each chunkas it is received. This allows a single copy of the logic to be sharedbetween ReceiveTarFile and ReceiveAndUnpackTarFile, and eliminatesa few #ifdef conditions based on HAVE_LIBZ.While this is slightly more code, it's arguably clearer, andthere is a pending patch that introduces additional calls toReceiveCopyData.This commit is not intended to result in any functional change.Discussion:http://postgr.es/m/CA+TgmoYZDTHbSpwZtW=JDgAhwVAYvmdSrRUjOd+AYdfNNXVBDg@mail.gmail.com
1 parent42f3629 commit431ba7b

File tree

1 file changed

+507
-498
lines changed

1 file changed

+507
-498
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp