Skip to content

I found 127.0.0.1 is not in slaves,dose it exist anathor way to choose lolalhost??  #22

Description

@hyhy01
if main_host then
            local function sort_by_main_host(a, b)
                if a.host == main_host and b.host ~= main_host then
                    return true
                else
                    return false
                end
            end
            tbl_sort(slaves, sort_by_main_host)
        else
            -- Put any slaves on 127.0.0.1 at the front
            tbl_sort(slaves, sort_by_localhost)
        end

AND can choose master or slave to connect via command ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions