@@ -77,8 +77,6 @@ internal enum Counters
77
77
/// </summary>
78
78
internal readonly IContentLocationStore ContentLocationStore ;
79
79
80
- private readonly ColdStorage _coldStorage ;
81
-
82
80
/// <summary>
83
81
/// The machine location for the current cache.
84
82
/// </summary>
@@ -120,7 +118,6 @@ public DistributedContentSession(
120
118
DistributedContentCopier contentCopier ,
121
119
DistributedContentStore distributedContentStore ,
122
120
MachineLocation localMachineLocation ,
123
- ColdStorage coldStorage ,
124
121
DistributedContentStoreSettings settings = default )
125
122
: base ( name )
126
123
{
@@ -139,8 +136,6 @@ public DistributedContentSession(
139
136
DistributedCopier = contentCopier ;
140
137
PutAndPlaceFileGate = new SemaphoreSlim ( Settings . MaximumConcurrentPutAndPlaceFileOperations ) ;
141
138
142
- _coldStorage = coldStorage ;
143
-
144
139
_buildRingMachinesCache = new ExpiringValue < MachineLocation [ ] > (
145
140
Settings . ProactiveCopyInRingMachineLocationsExpiryCache ,
146
141
SystemClock . Instance ,
@@ -769,28 +764,6 @@ await ContentLocationStore.GetBulkAsync(
769
764
reason ) ;
770
765
} ;
771
766
772
- // If ColdStorage is ON try to place files from it before use remote locations
773
- if ( _coldStorage != null )
774
- {
775
- return Workflows . RunWithFallback (
776
- hashesWithPaths ,
777
- initialFunc : async args => { return await _coldStorage . FetchThenPutBulkAsync ( context , args , Inner ) ; } ,
778
- fallbackFunc : initialFunc ,
779
- secondFallbackFunc : fallbackFunc ,
780
- thirdFallbackFunc : async args =>
781
- {
782
- var coldStorageGetBulkResult = _coldStorage . GetBulkLocations ( context , args ) ;
783
- return await FetchFromContentLocationStoreThenPutAsync (
784
- context ,
785
- args ,
786
- GetBulkOrigin . ColdStorage ,
787
- urgencyHint ,
788
- coldStorageGetBulkResult ,
789
- reason ) ;
790
- } ,
791
- isSuccessFunc : result => IsPlaceFileSuccess ( result ) ) ;
792
- }
793
-
794
767
return Workflows . RunWithFallback (
795
768
hashesWithPaths ,
796
769
initialFunc : initialFunc ,
0 commit comments