Skip to content
Snippets Groups Projects
Commit 92b8b695 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Review fixes for replica-ro-without-id

parent 20762ea5
No related branches found
No related tags found
No related merge requests found
......@@ -66,12 +66,10 @@ lbox_info_server(struct lua_State *L)
lua_pushliteral(L, "uuid");
lua_pushlstring(L, tt_uuid_str(&recovery->server_uuid), UUID_STR_LEN);
lua_settable(L, -3);
if (recovery->server_id != 0) {
lua_pushliteral(L, "lsn");
luaL_pushnumber64(L, vclock_get(&recovery->vclock,
recovery->server_id));
lua_settable(L, -3);
}
lua_pushliteral(L, "lsn");
luaL_pushinumber64(L, vclock_get(&recovery->vclock,
recovery->server_id));
lua_settable(L, -3);
lua_pushliteral(L, "ro");
lua_pushboolean(L, box_is_ro());
lua_settable(L, -3);
......
......@@ -29,7 +29,7 @@ box.info.server.ro
...
box.info.server.lsn
---
- null
- -1
...
space = box.schema.create_space("ro")
---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment