Commit 8080265
swarm/storage: fix access count on dbstore after cache hit (#17978)
Access count was not incremented when chunk was retrieved
from cache. So the garbage collector might have deleted the most
frequently accessed chunk from disk.
Co-authored-by: Ferenc Szabo <[email protected]>1 parent 1212c7b commit 8080265
File tree
4 files changed
+138
-17
lines changed- swarm/storage
4 files changed
+138
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
189 | 203 | | |
190 | 204 | | |
191 | 205 | | |
| |||
349 | 363 | | |
350 | 364 | | |
351 | 365 | | |
| 366 | + | |
352 | 367 | | |
353 | 368 | | |
354 | 369 | | |
| |||
685 | 700 | | |
686 | 701 | | |
687 | 702 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | 703 | | |
692 | | - | |
693 | | - | |
694 | 704 | | |
695 | 705 | | |
696 | 706 | | |
| |||
723 | 733 | | |
724 | 734 | | |
725 | 735 | | |
726 | | - | |
| 736 | + | |
| 737 | + | |
727 | 738 | | |
728 | 739 | | |
729 | 740 | | |
| |||
796 | 807 | | |
797 | 808 | | |
798 | 809 | | |
799 | | - | |
800 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
801 | 815 | | |
802 | 816 | | |
803 | | - | |
| 817 | + | |
804 | 818 | | |
| 819 | + | |
| 820 | + | |
805 | 821 | | |
806 | 822 | | |
807 | 823 | | |
808 | | - | |
809 | 824 | | |
810 | 825 | | |
| 826 | + | |
811 | 827 | | |
812 | 828 | | |
813 | 829 | | |
| |||
817 | 833 | | |
818 | 834 | | |
819 | 835 | | |
820 | | - | |
| 836 | + | |
821 | 837 | | |
822 | 838 | | |
823 | 839 | | |
| |||
858 | 874 | | |
859 | 875 | | |
860 | 876 | | |
861 | | - | |
862 | 877 | | |
863 | 878 | | |
864 | 879 | | |
865 | 880 | | |
866 | | - | |
| 881 | + | |
| 882 | + | |
867 | 883 | | |
868 | 884 | | |
869 | 885 | | |
| |||
874 | 890 | | |
875 | 891 | | |
876 | 892 | | |
877 | | - | |
| 893 | + | |
878 | 894 | | |
879 | | - | |
| 895 | + | |
880 | 896 | | |
881 | 897 | | |
882 | | - | |
| 898 | + | |
883 | 899 | | |
884 | 900 | | |
885 | 901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
108 | 147 | | |
109 | 148 | | |
110 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
0 commit comments