[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3719: tahoe_cp doesn't correctly determine when it needs to copy bytes

Tahoe-LAFS trac at tahoe-lafs.org
Fri May 21 15:00:27 UTC 2021


#3719: tahoe_cp doesn't correctly determine when it needs to copy bytes
----------------------+---------------------------
 Reporter:  itamarst  |          Owner:
     Type:  defect    |         Status:  new
 Priority:  normal    |      Milestone:  undecided
Component:  unknown   |        Version:  n/a
 Keywords:            |  Launchpad Bug:
----------------------+---------------------------
 tahoe_cp appears to have optimizations to skip copying bytes in some
 cases.

 However, it's buggy: it does `if source.need_to_copy_bytes:` (see
 implementation of` Copier.need_to_copy_bytes`) but `need_to_copy_bytes` is
 a method! So it always comes out True, instead of calling the method and
 seeing the response.

 If that bug is fixed it hits some currently untested code paths and
 uncovers some bugs. So fixing this would also involve fixing those
 currently unreachable optimized code paths.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3719>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list