Skip to content

Conversation

@elianddb
Copy link
Contributor

@elianddb elianddb commented Nov 5, 2025

Fixes #10015

Dolt exposes the current server's current cluster role in @@GLOBAL.dolt_cluster_role, which will be either the string standby or the string primary. MySQL has a standard system variable to expose read-only status of the server, namely read_only.

  • Support read_only to always be set to true in standby mode.
  • When using ClusterController, read_only setting is indirectly delegated to standby callback.

@coffeegoddd
Copy link
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
b59aad1 ok 5937471
version total_tests
b59aad1 5937471
correctness_percentage
100.0

@elianddb elianddb marked this pull request as ready for review November 5, 2025 22:30
Copy link
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

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

LGTM

@elianddb elianddb merged commit 33237a9 into main Nov 5, 2025
36 of 38 checks passed
@elianddb elianddb self-assigned this Nov 6, 2025
@Hydrocharged Hydrocharged deleted the elian/10015 branch December 15, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: cluster replication: When the server is in standby mode, the read_only system variable should always be true.

4 participants