-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
Description
It is released in vshard 0.1.25. See tarantool/doc#3942.
This mode has different vshard.storage.info()
output: names are there instead of UUIDs.
At least the following crud's code is not ready for that.
Lines 182 to 196 in a897f4c
local box_info = box.info() | |
local replicaset_uuid | |
if box_info.replicaset ~= nil then | |
replicaset_uuid = box_info.replicaset.uuid | |
else | |
replicaset_uuid = box_info.cluster.uuid | |
end | |
local replicaset_info = storage_info.replicasets[replicaset_uuid] | |
if replicaset_info == nil or replicaset_info.master == nil then | |
error(string.format('Failed to find a vshard configuration for ' .. | |
' replicaset with replicaset_uuid %s.', | |
replicaset_uuid)) | |
end | |
user = luri.parse(replicaset_info.master.uri).login or 'guest' | |
end |