Sprint:
10.2.2-3, 10.2.2-1, 10.2.2-2, 10.2.2-4, 10.1.18
Functions sp_load_for_information_schema() and show_create_sp() do a lot of strlen calls, e.g.:
if (parse_user(definer, strlen (definer),
definer_user_name.str, &definer_user_name.length,
definer_host_name.str, &definer_host_name.length) &&
definer_user_name.length && !definer_host_name.length)
if (!show_create_sp(thd, &defstr,
type,
NULL, 0,
name->m_name.str, name->m_name.length,
params, strlen (params),
returns, strlen (returns),
body, strlen (body),
&chistics, definer_user_name, definer_host_name,
sql_mode))
if (!show_create_sp(thd, &defstr, type,
sp_db_str.str, sp_db_str.length,
sp_name_obj.m_name.str, sp_name_obj.m_name.length,
params, strlen (params),
returns, strlen (returns),
sp_body, strlen (sp_body),
&sp_chistics, &definer_user, &definer_host, sql_mode))
This code is going to be shared by Oracle-style packages soon (MDEV-10591 ). Before adding packages, it would be nice to get rid of strlen calls.
Under terms if this task we'll change API for these functions to accept LEX_CSTRING instead of const char * and fix the caller code accordingly.
Alexander Barkov
made changes -
2017-07-31 12:47
Description
Functions sp_load_for_information_schema() and show_create_sp() do a lot of strlen calls, e.g.:
{code:cpp}
if (parse_user(definer, strlen(definer),
definer_user_name.str, &definer_user_name.length,
definer_host_name.str, &definer_host_name.length) &&
definer_user_name.length && !definer_host_name.length)
{code}
{code:cpp}
if (!show_create_sp(thd, &defstr,
type,
NULL, 0,
name->m_name.str, name->m_name.length,
params, strlen(params),
returns, strlen(returns),
body, strlen(body),
&chistics, definer_user_name, definer_host_name,
sql_mode))
{code}
{code:cpp}
if (!show_create_sp(thd, &defstr, type,
sp_db_str.str, sp_db_str.length,
sp_name_obj.m_name.str, sp_name_obj.m_name.length,
params, strlen(params),
returns, strlen(returns),
sp_body, strlen(sp_body),
&sp_chistics, &definer_user, &definer_host, sql_mode))
{code}
This code is going to be shared by Oracle-style packages soon (MDEV-10591 ). Before adding packages, it would be nice to get rid of {{strlen}} calls.
Under terms if this task we'll change API for these functions to accept {{LEX_CSTRING}} instead of {{const char *}} and fix the caller code accordingly.
Functions sp_load_for_information_schema() and show_create_sp() do a lot of strlen calls, e.g.:
{code:cpp}
if (parse_user(definer, strlen(definer),
definer_user_name.str, &definer_user_name.length,
definer_host_name.str, &definer_host_name.length) &&
definer_user_name.length && !definer_host_name.length)
{code}
{code:cpp}
if (!show_create_sp(thd, &defstr,
type,
NULL, 0,
name->m_name.str, name->m_name.length,
params, strlen(params),
returns, strlen(returns),
body, strlen(body),
&chistics, definer_user_name, definer_host_name,
sql_mode))
{code}
{code:cpp}
if (!show_create_sp(thd, &defstr, type,
sp_db_str.str, sp_db_str.length,
sp_name_obj.m_name.str, sp_name_obj.m_name.length,
params, strlen(params),
returns, strlen(returns),
sp_body, strlen(sp_body),
&sp_chistics, &definer_user, &definer_host, sql_mode))
{code}
This code is going to be shared by Oracle-style packages soon (MDEV-10591 ). Before adding packages, it would be nice to get rid of {{strlen}} calls.
Under terms if this task we'll change API for these functions to accept {{LEX_CSTRING}} instead of {{const char *}} and fix the caller code accordingly.
Alexander Barkov
made changes -
2017-07-31 12:47
Status
Open
[ 1
]
In Progress
[ 3
]
Alexander Barkov
made changes -
2017-07-31 13:05
Component/s
Stored routines
[ 13905
]
Component/s
OTHER
[ 10125
]
Alexander Barkov
made changes -
2017-07-31 20:52
Status
In Progress
[ 3
]
Stalled
[ 10000
]
Alexander Barkov
made changes -
2017-07-31 20:52
issue.field.resolutiondate
2017-07-31 20:52:37.0
2017-07-31 20:52:37.702
Alexander Barkov
made changes -
2017-07-31 20:52
Fix Version/s
10.3.1
[ 22532
]
Fix Version/s
10.3
[ 22126
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:45
Workflow
MariaDB v3
[ 81851
]
MariaDB v4
[ 152544
]
{"report":{"fcp":859,"ttfb":216,"pageVisibility":"visible","entityId":62447,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"50b4c395-1399-4bff-9b8c-1bf5c8fcf0c1","navigationType":0,"readyForUser":936.1999998092651,"redirectCount":0,"resourceLoadedEnd":1172.6999998092651,"resourceLoadedStart":220.59999990463257,"resourceTiming":[{"duration":171.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":220.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":391.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":171.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":220.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":392,"responseStart":0,"secureConnectionStart":0},{"duration":180.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":221.09999990463257,"connectEnd":221.09999990463257,"connectStart":221.09999990463257,"domainLookupEnd":221.09999990463257,"domainLookupStart":221.09999990463257,"fetchStart":221.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":221.09999990463257,"responseEnd":401.19999980926514,"responseStart":401.19999980926514,"secureConnectionStart":221.09999990463257},{"duration":260.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":221.30000019073486,"connectEnd":221.30000019073486,"connectStart":221.30000019073486,"domainLookupEnd":221.30000019073486,"domainLookupStart":221.30000019073486,"fetchStart":221.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":221.30000019073486,"responseEnd":482.19999980926514,"responseStart":482.19999980926514,"secureConnectionStart":221.30000019073486},{"duration":264.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":221.5,"connectEnd":221.5,"connectStart":221.5,"domainLookupEnd":221.5,"domainLookupStart":221.5,"fetchStart":221.5,"redirectEnd":0,"redirectStart":0,"requestStart":221.5,"responseEnd":486,"responseStart":486,"secureConnectionStart":221.5},{"duration":264.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":221.69999980926514,"connectEnd":221.69999980926514,"connectStart":221.69999980926514,"domainLookupEnd":221.69999980926514,"domainLookupStart":221.69999980926514,"fetchStart":221.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":221.69999980926514,"responseEnd":486.40000009536743,"responseStart":486.40000009536743,"secureConnectionStart":221.69999980926514},{"duration":264.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":221.90000009536743,"connectEnd":221.90000009536743,"connectStart":221.90000009536743,"domainLookupEnd":221.90000009536743,"domainLookupStart":221.90000009536743,"fetchStart":221.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":221.90000009536743,"responseEnd":486.80000019073486,"responseStart":486.80000019073486,"secureConnectionStart":221.90000009536743},{"duration":320.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":222.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":542.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":264.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":222.30000019073486,"connectEnd":222.30000019073486,"connectStart":222.30000019073486,"domainLookupEnd":222.30000019073486,"domainLookupStart":222.30000019073486,"fetchStart":222.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":222.30000019073486,"responseEnd":487.19999980926514,"responseStart":487.19999980926514,"secureConnectionStart":222.30000019073486},{"duration":320.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":222.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":542.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":265.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":222.59999990463257,"connectEnd":222.59999990463257,"connectStart":222.59999990463257,"domainLookupEnd":222.59999990463257,"domainLookupStart":222.59999990463257,"fetchStart":222.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":222.59999990463257,"responseEnd":487.80000019073486,"responseStart":487.69999980926514,"secureConnectionStart":222.59999990463257},{"duration":451.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":227.90000009536743,"connectEnd":227.90000009536743,"connectStart":227.90000009536743,"domainLookupEnd":227.90000009536743,"domainLookupStart":227.90000009536743,"fetchStart":227.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":227.90000009536743,"responseEnd":679.3000001907349,"responseStart":679.3000001907349,"secureConnectionStart":227.90000009536743},{"duration":920.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":233.40000009536743,"connectEnd":233.40000009536743,"connectStart":233.40000009536743,"domainLookupEnd":233.40000009536743,"domainLookupStart":233.40000009536743,"fetchStart":233.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":233.40000009536743,"responseEnd":1153.8000001907349,"responseStart":1153.8000001907349,"secureConnectionStart":233.40000009536743},{"duration":129.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":554.3000001907349,"connectEnd":554.3000001907349,"connectStart":554.3000001907349,"domainLookupEnd":554.3000001907349,"domainLookupStart":554.3000001907349,"fetchStart":554.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":554.3000001907349,"responseEnd":683.4000000953674,"responseStart":683.4000000953674,"secureConnectionStart":554.3000001907349},{"duration":359.7999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":812.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":812.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1172.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":345.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":813.9000000953674,"connectEnd":813.9000000953674,"connectStart":813.9000000953674,"domainLookupEnd":813.9000000953674,"domainLookupStart":813.9000000953674,"fetchStart":813.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":813.9000000953674,"responseEnd":1159.6999998092651,"responseStart":1159.6999998092651,"secureConnectionStart":813.9000000953674},{"duration":352.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":814.1999998092651,"connectEnd":814.1999998092651,"connectStart":814.1999998092651,"domainLookupEnd":814.1999998092651,"domainLookupStart":814.1999998092651,"fetchStart":814.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":814.1999998092651,"responseEnd":1166.3000001907349,"responseStart":1166.3000001907349,"secureConnectionStart":814.1999998092651},{"duration":378.1000003814697,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":853.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":853.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":38,"responseStart":216,"responseEnd":234,"domLoading":219,"domInteractive":1185,"domContentLoadedEventStart":1185,"domContentLoadedEventEnd":1231,"domComplete":1444,"loadEventStart":1444,"loadEventEnd":1445,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1155.5},{"name":"bigPipe.sidebar-id.end","time":1156.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1156.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1159.4000000953674},{"name":"activityTabFullyLoaded","time":1247.3000001907349}],"measures":[],"correlationId":"1df0d6a8c0666b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":115,"dbReadsTimeInMs":18,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}