Do not release frozen segment if we failed extending it#94450
Conversation
Maybe I'm missing something, but if we try to commit more of the reserved segment and this fails, it doesn't feel right to release the whole thing. The previously committed part of the segment is still in use.
|
This was a suggestion from @jkotas: I don't have a strong opinion here, presumably if Commit fails we're in a bad state anyway? |
That comment seems to be for the call in the constructor of FrozenObjectSegment - i.e. we reserved and immedially try to commit, but fail there. Nobody can be using that memory yet so we But the place where I'm deleting the free is in |
Ah, right, then sounds OK to have it, unless @jkotas has an opposite opinion |

Maybe I'm missing something, but if we try to commit more of the reserved segment and this fails, it doesn't feel right to release the whole thing. The previously committed part of the segment is still in use.