Commit 6a9bfcf
fix(drivers/139): move GetSectionReader outside retry loop
- Move ss.GetSectionReader() before retry.Do() so the sequential
stream section reader is only called once per chunk
- Remove redundant ss.FreeSectionReader() calls from inside the
retry closure since the reader is now owned by the outer scope
- Fixes 'stream not cached' errors when retrying failed chunk
uploads during cross-storage WebDAV COPY operations
Co-authored-by: GitHub Copilot <copilot@github.com>1 parent e75deae commit 6a9bfcf
2 files changed
Lines changed: 11 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
905 | | - | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
906 | 910 | | |
907 | 911 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | 912 | | |
914 | | - | |
915 | 913 | | |
916 | 914 | | |
917 | 915 | | |
918 | 916 | | |
919 | 917 | | |
920 | | - | |
921 | 918 | | |
922 | 919 | | |
923 | 920 | | |
| |||
929 | 926 | | |
930 | 927 | | |
931 | 928 | | |
932 | | - | |
933 | 929 | | |
934 | 930 | | |
935 | 931 | | |
936 | 932 | | |
937 | 933 | | |
938 | | - | |
939 | 934 | | |
940 | 935 | | |
941 | 936 | | |
942 | | - | |
943 | 937 | | |
944 | 938 | | |
945 | 939 | | |
946 | 940 | | |
947 | 941 | | |
948 | | - | |
949 | 942 | | |
950 | 943 | | |
951 | 944 | | |
952 | | - | |
953 | 945 | | |
954 | 946 | | |
955 | 947 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
720 | 724 | | |
721 | 725 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
| 726 | + | |
730 | 727 | | |
731 | 728 | | |
732 | 729 | | |
733 | 730 | | |
734 | | - | |
735 | 731 | | |
736 | 732 | | |
737 | 733 | | |
| |||
742 | 738 | | |
743 | 739 | | |
744 | 740 | | |
745 | | - | |
746 | 741 | | |
747 | 742 | | |
748 | 743 | | |
749 | 744 | | |
750 | 745 | | |
751 | 746 | | |
752 | | - | |
753 | 747 | | |
754 | 748 | | |
755 | 749 | | |
| |||
0 commit comments