Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-28526

Spider: remove conn_kind member variables

Details

    Description

      The conn_kind, which stands for "connection kind", is no longer useful because the HandlerSocket support is deleted and Spider now has only one connection kind, SPIDER_CONN_KIND_MYSQL. Remove conn_kind and related code.

      Attachments

        Issue Links

          Activity

            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) created issue -
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Field Original Value New Value
            Component/s Storage Engine - Spider [ 10132 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Nayuta Yanagisawa [ JIRAUSER47117 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Fix Version/s 10.10 [ 27530 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Description The conn_kind, which stands for "connection kind", seems to be doing nothing. Verify the statement and, if true, remove conn_kind and related code. The {{conn_kind}}, which stands for "connection kind", is no longer useful because the HandlerSocket support is deleted and Spider now has only one connection kind, {{SPIDER_CONN_KIND_MYSQL}}. Remove conn_kind and related code.
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Issue Type Bug [ 1 ] Task [ 3 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 10.10 [ 27530 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Nayuta Yanagisawa [ JIRAUSER47117 ] Yuchen Pei [ JIRAUSER52627 ]
            ycp Yuchen Pei made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ycp Yuchen Pei added a comment - https://github.com/MariaDB/server/commit/aea4f44cfe2c1b8a2318a27f28512769cda69b50
            ycp Yuchen Pei made changes -
            Status In Progress [ 3 ] In Review [ 10002 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Yuchen Pei [ JIRAUSER52627 ] Nayuta Yanagisawa [ JIRAUSER47117 ]

            ycp There are still some occurrences of SPIDER_CONN_KIND_MYSQL in the code. Could you also remove the constant SPIDER_CONN_KIND_MYSQL itself and related code fragments? Also, please enrich the commit message, which could be a verbatim copy of the issue description.

            By the way, this is my bad, but the fix version should be 10.12, which is the latest development branch.

            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) added a comment - ycp There are still some occurrences of SPIDER_CONN_KIND_MYSQL in the code. Could you also remove the constant SPIDER_CONN_KIND_MYSQL itself and related code fragments? Also, please enrich the commit message, which could be a verbatim copy of the issue description. By the way, this is my bad, but the fix version should be 10.12, which is the latest development branch.
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Nayuta Yanagisawa [ JIRAUSER47117 ] Yuchen Pei [ JIRAUSER52627 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Fix Version/s 10.12 [ 28320 ]
            Fix Version/s 10.11 [ 27614 ]
            ycp Yuchen Pei made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            ycp Yuchen Pei added a comment - - edited

            nayuta-yanagisawa
            > There are still some occurrences of SPIDER_CONN_KIND_MYSQL in the code. Could you also remove the constant SPIDER_CONN_KIND_MYSQL itself and related code fragments? Also, please enrich the commit message, which could be a verbatim copy of the issue description.

            Done: https://github.com/MariaDB/server/commit/b7b4375fe73840c5f7e0fc02ee00e51f6e2ae550

            PTAL thanks.

            ycp Yuchen Pei added a comment - - edited nayuta-yanagisawa > There are still some occurrences of SPIDER_CONN_KIND_MYSQL in the code. Could you also remove the constant SPIDER_CONN_KIND_MYSQL itself and related code fragments? Also, please enrich the commit message, which could be a verbatim copy of the issue description. Done: https://github.com/MariaDB/server/commit/b7b4375fe73840c5f7e0fc02ee00e51f6e2ae550 PTAL thanks.
            ycp Yuchen Pei made changes -
            Status In Progress [ 3 ] In Review [ 10002 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Yuchen Pei [ JIRAUSER52627 ] Nayuta Yanagisawa [ JIRAUSER47117 ]

            ycp Mostly looks OK to me except diff on storage/spider/spd_table.cc. Have you applied clang-format or something on the file? Please do not modify parts of the code that are not related to the present task. If you like to format your patch, maybe clang-format-diff works.

            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) added a comment - - edited ycp Mostly looks OK to me except diff on storage/spider/spd_table.cc . Have you applied clang-format or something on the file? Please do not modify parts of the code that are not related to the present task. If you like to format your patch, maybe clang-format-diff works.
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Nayuta Yanagisawa [ JIRAUSER47117 ] Yuchen Pei [ JIRAUSER52627 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            ycp Yuchen Pei added a comment - - edited

            nayuta-yanagisawa
            > Mostly looks OK to me except diff on storage/spider/spd_table.cc. Have you applied clang-format or something on the file? Please do not modify parts of the code that are not related to the present task. If you like to format your patch, maybe clang-format-diff works.

            Sorry about the problem - I'm still trying to tame the IDE. Here's the updated commit - PTAL:

            https://github.com/MariaDB/server/commit/ed3488e3ed040cf27ac3017090dce9bedcc43c8c

            ycp Yuchen Pei added a comment - - edited nayuta-yanagisawa > Mostly looks OK to me except diff on storage/spider/spd_table.cc. Have you applied clang-format or something on the file? Please do not modify parts of the code that are not related to the present task. If you like to format your patch, maybe clang-format-diff works. Sorry about the problem - I'm still trying to tame the IDE. Here's the updated commit - PTAL: https://github.com/MariaDB/server/commit/ed3488e3ed040cf27ac3017090dce9bedcc43c8c
            ycp Yuchen Pei made changes -
            Status Stalled [ 10000 ] In Review [ 10002 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Yuchen Pei [ JIRAUSER52627 ] Nayuta Yanagisawa [ JIRAUSER47117 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) added a comment - ycp I've commented on GitHub: https://github.com/MariaDB/server/commit/ed3488e3ed040cf27ac3017090dce9bedcc43c8c#
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Nayuta Yanagisawa [ JIRAUSER47117 ] Yuchen Pei [ JIRAUSER52627 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            ycp Yuchen Pei added a comment - - edited

            nayuta-yanagisawa
            Just applied formatting with `git diff -U0 --no-color --relative HEAD^ | clang-format-diff -p1 -i`, and did a sanity check on the result which looked alright to me. PTAL thanks:

            https://github.com/MariaDB/server/commit/b7b4375fe73840c5f7e0fc02ee00e51f6e2ae550-

            Sorry, should be this one:

            -htt
            ps://github.com/MariaDB/server/commit/b1ee3d2d08fa5a39dd4fdddfa907bb92b1362356

            Sorry, just noticed there's another comment to address. Working on it.

            ycp Yuchen Pei added a comment - - edited nayuta-yanagisawa Just applied formatting with `git diff -U0 --no-color --relative HEAD^ | clang-format-diff -p1 -i`, and did a sanity check on the result which looked alright to me. PTAL thanks: htt ps://github.com/MariaDB/server/commit/b7b4375fe73840c5f7e0fc02ee00e51f6e2ae550- Sorry, should be this one: -htt ps://github.com/MariaDB/server/commit/b1ee3d2d08fa5a39dd4fdddfa907bb92b1362356 Sorry, just noticed there's another comment to address. Working on it.
            ycp Yuchen Pei added a comment - nayuta-yanagisawa Addressed both comments, updated commit at: https://github.com/MariaDB/server/commit/ff19638d863a137acc76ec089d495d8afe3eef20
            ycp Yuchen Pei made changes -
            Status Stalled [ 10000 ] In Review [ 10002 ]
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Yuchen Pei [ JIRAUSER52627 ] Nayuta Yanagisawa [ JIRAUSER47117 ]

            OK to push but please hold on until the latest development branch is created.

            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) added a comment - OK to push but please hold on until the latest development branch is created.
            nayuta-yanagisawa Nayuta Yanagisawa (Inactive) made changes -
            Assignee Nayuta Yanagisawa [ JIRAUSER47117 ] Yuchen Pei [ JIRAUSER52627 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            ycp Yuchen Pei made changes -
            issue.field.resolutiondate 2022-12-23 06:59:30.0 2022-12-23 06:59:30.838
            ycp Yuchen Pei made changes -
            Fix Version/s 11.0.0 [ 28500 ]
            Fix Version/s 11.0 [ 28320 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            ycp Yuchen Pei made changes -
            Fix Version/s 10.5.28 [ 29952 ]
            Fix Version/s 10.6.21 [ 29953 ]
            Fix Version/s 10.11.11 [ 29954 ]
            ycp Yuchen Pei added a comment -

            backported to 10.5 as part of MDEV-34849

            ycp Yuchen Pei added a comment - backported to 10.5 as part of MDEV-34849

            People

              ycp Yuchen Pei
              nayuta-yanagisawa Nayuta Yanagisawa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.