error: report ER_READONLY reason in message
A previous commit added reason details as error fields. But error objects are serialized as strings by default thus loosing all the details. This commit makes ER_READONLY message contain the reason why it happened in a human-readable form. That way it will be well visible in the logs at least. Follow-up #5568
Showing
- src/box/box.cc 23 additions, 7 deletionssrc/box/box.cc
- src/box/errcode.h 1 addition, 1 deletionsrc/box/errcode.h
- src/lib/core/diag.c 11 additions, 0 deletionssrc/lib/core/diag.c
- src/lib/core/diag.h 3 additions, 0 deletionssrc/lib/core/diag.h
- test/replication-luatest/gh_5568_read_only_reason_test.lua 19 additions, 0 deletionstest/replication-luatest/gh_5568_read_only_reason_test.lua
- test/replication-luatest/quorum_orphan_test.lua 5 additions, 6 deletionstest/replication-luatest/quorum_orphan_test.lua
- test/replication/anon.result 3 additions, 3 deletionstest/replication/anon.result
- test/replication/catch.result 2 additions, 2 deletionstest/replication/catch.result
- test/replication/election_qsync.result 9 additions, 2 deletionstest/replication/election_qsync.result
- test/replication/election_qsync.test.lua 3 additions, 1 deletiontest/replication/election_qsync.test.lua
- test/replication/gh-6034-qsync-limbo-ownership.result 18 additions, 4 deletionstest/replication/gh-6034-qsync-limbo-ownership.result
- test/replication/gh-6034-qsync-limbo-ownership.test.lua 6 additions, 2 deletionstest/replication/gh-6034-qsync-limbo-ownership.test.lua
- test/sql-tap/gh-5231-box-execute-writes-in-ro.test.lua 2 additions, 1 deletiontest/sql-tap/gh-5231-box-execute-writes-in-ro.test.lua
- test/vinyl/misc.result 1 addition, 1 deletiontest/vinyl/misc.result
Loading
Please register or sign in to comment