File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/Cli/dotnet/Telemetry/PersistenceChannel Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -321,18 +321,17 @@ private void CalculateSize()
321
321
}
322
322
323
323
/// <summary>
324
- /// Enqueue is saving a transmission to a <c>tmp</c> file and after a successful write operation it renames it to a
324
+ /// Enqueue is saving a transmission to a file with a guid, and after a successful write operation it renames it to a
325
325
/// <c>trn</c> file.
326
326
/// A file without a <c>trn</c> extension is ignored by Storage.Peek(), so if a process is taken down before rename
327
- /// happens
328
- /// it will stay on the disk forever.
329
- /// This thread deletes files with the <c>tmp</c> extension that exists on disk for more than 5 minutes.
327
+ /// happens it will stay on the disk forever.
328
+ /// This thread deletes files with the <c>trn</c> extension that exists on disk for more than 5 minutes.
330
329
/// </summary>
331
330
private void DeleteObsoleteFiles ( )
332
331
{
333
332
try
334
333
{
335
- IEnumerable < string > files = GetFiles ( "*.tmp " , 50 ) ;
334
+ IEnumerable < string > files = GetFiles ( "*.trn " , 50 ) ;
336
335
foreach ( string file in files )
337
336
{
338
337
DateTime creationTime = File . GetCreationTimeUtc ( Path . Combine ( StorageFolder , file ) ) ;
You can’t perform that action at this time.
0 commit comments