MCPcopy Create free account
hub / github.com/RsyncProject/rsync / we_want_redo

Function we_want_redo

receiver.c:574–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574static int we_want_redo(int desired_ndx)
575{
576 static int redo_ndx = -1;
577
578 while (redo_ndx < desired_ndx) {
579 if (redo_ndx >= 0)
580 no_batched_update(redo_ndx, True);
581 if ((redo_ndx = flist_ndx_pop(&batch_redo_list)) < 0)
582 return 0;
583 }
584
585 if (redo_ndx == desired_ndx) {
586 redo_ndx = -1;
587 return 1;
588 }
589
590 return 0;
591}
592
593static int gen_wants_ndx(int desired_ndx, int flist_num)
594{

Callers 1

recv_filesFunction · 0.85

Calls 2

no_batched_updateFunction · 0.85
flist_ndx_popFunction · 0.85

Tested by

no test coverage detected