Skip to content

Conversation

@pepone
Copy link
Member

@pepone pepone commented Nov 3, 2025

Fix #4624

// Remember if the server was just released by a session, this will be used later to not update the configuration
// on the disk (as an optimization and to allow users to review the configuration file after allocating a server --
// that's useful if the server configuration is bogus and the session server can't start).
bool serverSessionReleased = _desc && _desc->activation == "session" && _desc->revision == descriptor->revision &&
Copy link
Member Author

@pepone pepone Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check only makes sense if we do it before updating _desc.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the serverSessionReleased flag was being calculated incorrectly due to premature assignment of _desc. The assignment of _desc = descriptor is moved to after the serverSessionReleased calculation, ensuring the old descriptor state is properly compared against the new one.

  • Reordered variable assignments to preserve old state during session release detection

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bogus serverSessionReleased check in IceGrid

2 participants