Merged PR 803931: Ensure the cancellationToken is not passed to GarbageCollector.

Correct the condition to Ensure the cancellationToken is not passed to GarbageCollector.

Related work items: #2211574
This commit is contained in:
Sahiti Chandramouli 2024-09-06 17:51:30 +00:00
Родитель a7a028a014
Коммит 79c3c28478
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -480,7 +480,7 @@ namespace BuildXL.Scheduler.Cache
{
// This flag ensures that garbage collection fully completes before proceeding,
// preventing issues caused by incomplete entry populations during cache operations.
if (m_waitForGCOnClose)
if (!m_waitForGCOnClose)
{
// Stop garbage collection
await m_garbageCollectCancellation.CancelTokenAsyncIfSupported();