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

my_sys DYNAMIC_ARRAY and DYNAMIC_STRING inconsistancy

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Fix Version/s: 10.7.1
    • Component/s: Server
    • Labels:
      None

      Description

      Consider:

      extern my_bool init_dynamic_string(DYNAMIC_STRING *str, const char *init_str,   
                                         size_t init_alloc,size_t alloc_increment);
      

      vs:

      extern my_bool init_dynamic_array2(PSI_memory_key psi_key, DYNAMIC_ARRAY *array,
                                         uint element_size, void *init_buffer,        
                                         uint init_alloc, uint alloc_increment,       
                                         myf my_flags);
      

      I expect the values of init_alloc and alloc_increment to be size_t for DYNAMIC_ARRAY just like they are for DYNAMIC_STRING.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cvicentiu Vicențiu Ciorbaru
              Reporter:
              Eric_Herman Eric Herman
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.