File tree 1 file changed +4
-4
lines changed
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> {
163
163
res << " , tx initially granted memory: " << HumanReadableSize (TxExternalDataQueryMemory.load (), SF_BYTES)
164
164
<< " , tx total memory allocations: " << HumanReadableSize (TxScanQueryMemory.load (), SF_BYTES)
165
165
<< " , 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)
167
167
<< " , tx total execution units: " << TxExecutionUnits.load ()
168
168
<< " , started at: " << CreatedAt
169
169
<< " }" << Endl;
@@ -184,11 +184,11 @@ class TTxState : public TAtomicRefCount<TTxState> {
184
184
185
185
void AckFailedMemoryAlloc (ui64 memory) {
186
186
auto * oldBacktrace = TxFailedAllocationBacktrace.load ();
187
- ui64 maxAlloc = TxFailedAllocation.load ();
187
+ ui64 lastAlloc = TxFailedAllocation.load ();
188
188
bool exchanged = false ;
189
189
190
- while (maxAlloc < memory && !exchanged) {
191
- exchanged = TxFailedAllocation.compare_exchange_weak (maxAlloc , memory);
190
+ while (!exchanged) {
191
+ exchanged = TxFailedAllocation.compare_exchange_weak (lastAlloc , memory);
192
192
}
193
193
194
194
if (exchanged) {
You can’t perform that action at this time.
0 commit comments