File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ class TTxState : public TAtomicRefCount<TTxState> {
163163 res << " , tx initially granted memory: " << HumanReadableSize (TxExternalDataQueryMemory.load (), SF_BYTES)
164164 << " , tx total memory allocations: " << HumanReadableSize (TxScanQueryMemory.load (), SF_BYTES)
165165 << " , tx largest successful memory allocation: " << HumanReadableSize (TxMaxAllocation.load (), SF_BYTES)
166- << " , tx largest failed memory allocation: " << HumanReadableSize (TxFailedAllocation.load (), SF_BYTES)
166+ << " , tx last failed memory allocation: " << HumanReadableSize (TxFailedAllocation.load (), SF_BYTES)
167167 << " , tx total execution units: " << TxExecutionUnits.load ()
168168 << " , started at: " << CreatedAt
169169 << " }" << Endl;
@@ -184,11 +184,11 @@ class TTxState : public TAtomicRefCount<TTxState> {
184184
185185 void AckFailedMemoryAlloc (ui64 memory) {
186186 auto * oldBacktrace = TxFailedAllocationBacktrace.load ();
187- ui64 maxAlloc = TxFailedAllocation.load ();
187+ ui64 lastAlloc = TxFailedAllocation.load ();
188188 bool exchanged = false ;
189189
190- while (maxAlloc < memory && !exchanged) {
191- exchanged = TxFailedAllocation.compare_exchange_weak (maxAlloc , memory);
190+ while (!exchanged) {
191+ exchanged = TxFailedAllocation.compare_exchange_weak (lastAlloc , memory);
192192 }
193193
194194 if (exchanged) {
You can’t perform that action at this time.
0 commit comments