forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit431ba7b
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.com1 parent42f3629 commit431ba7b
1 file changed
+507
-498
lines changed0 commit comments
Comments
(0)