Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT(server): Allow running while DB is in read-only mode #6673

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Krzmbrzl
Copy link
Member

Note that the server's feature set is reduced to the absolute minimum
and most requests to the server will simply be dropped. Only users
that have already been on the server when it entered this mode will be
able to stay on the server and keep talking to each other. No new
connections will be accepted and nobody can move channels or perform any
other noteworthy actions (except writing text messages, which will still
work).

This mode is explicitly meant to be used only for short periods of time
that might be needed to perform a database backup etc.

Checks

The parameter with the server-ID is not user-provided but rather an
implicit parameter identifying the Server object the function is called
on (handled by the Ice backend). Therefore, it can be assumed that this
ID belongs to a valid server.

This makes an explicit check superfluous and since this check may even
require a database lookup, it has been removed. Instead, the passed
server ID is assumed to be correct and therefore returned as-is.
Note that the server's feature set is reduced to the absolute minimum
and most requests to the server will simply be dropped. Only users
that have already been on the server when it entered this mode will be
able to stay on the server and keep talking to each other. No new
connections will be accepted and nobody can move channels or perform any
other noteworthy actions (except writing text messages, which will still
work).

This mode is explicitly meant to be used only for short periods of time
that might be needed to perform a database backup etc.
@Krzmbrzl Krzmbrzl added server feature-request This issue or PR deals with a new feature labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue or PR deals with a new feature server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant