Commit 80696ee
Fix: Schema version not incremented on followers for CREATE/DROP DATABASE
When CREATE/DROP DATABASE transactions committed on follower nodes, the
DDLSQL field in CommitResult was not set. This caused the replication
handler to skip incrementing the schema version on follower nodes.
Effect: After CREATE DATABASE, subsequent DDL (like CREATE TABLE) would
fail with "schema version mismatch" because followers had version 0 while
coordinator had version 1.
Fix: Return DDLSQL in CommitResult for database operations so followers
increment their schema version correctly.
Verified: WordPress installs and runs correctly on 3-node cluster.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 1cc8dc4 commit 80696ee
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
| |||
0 commit comments