Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
914aa5d4
Commit
914aa5d4
authored
Sep 20, 2005
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
parents
46861063
6168d0d5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
server-tools/instance-manager/buffer.cc
server-tools/instance-manager/buffer.cc
+2
-0
server-tools/instance-manager/buffer.h
server-tools/instance-manager/buffer.h
+2
-2
server-tools/instance-manager/commands.cc
server-tools/instance-manager/commands.cc
+2
-2
server-tools/instance-manager/user_map.cc
server-tools/instance-manager/user_map.cc
+2
-1
No files found.
server-tools/instance-manager/buffer.cc
View file @
914aa5d4
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#include "buffer.h"
#include "buffer.h"
#include <m_string.h>
#include <m_string.h>
const
uint
Buffer
::
BUFFER_INITIAL_SIZE
=
4096
;
const
uint
Buffer
::
MAX_BUFFER_SIZE
=
16777216
;
/*
/*
Puts the given string to the buffer.
Puts the given string to the buffer.
...
...
server-tools/instance-manager/buffer.h
View file @
914aa5d4
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
class
Buffer
class
Buffer
{
{
private:
private:
enum
{
BUFFER_INITIAL_SIZE
=
4096
}
;
static
const
uint
BUFFER_INITIAL_SIZE
;
/* maximum buffer size is 16Mb */
/* maximum buffer size is 16Mb */
enum
{
MAX_BUFFER_SIZE
=
16777216
}
;
static
const
uint
MAX_BUFFER_SIZE
;
size_t
buffer_size
;
size_t
buffer_size
;
/* Error flag. Triggered if we get an error of some kind */
/* Error flag. Triggered if we get an error of some kind */
int
error
;
int
error
;
...
...
server-tools/instance-manager/commands.cc
View file @
914aa5d4
...
@@ -695,9 +695,9 @@ Set_option::Set_option(Instance_map *instance_map_arg,
...
@@ -695,9 +695,9 @@ Set_option::Set_option(Instance_map *instance_map_arg,
int
Set_option
::
correct_file
(
int
skip
)
int
Set_option
::
correct_file
(
int
skip
)
{
{
int
error
;
static
const
int
mysys_to_im_error
[]
=
{
0
,
ER_OUT_OF_RESOURCES
,
const
static
int
mysys_to_im_error
[]
=
{
0
,
ER_OUT_OF_RESOURCES
,
ER_ACCESS_OPTION_FILE
};
ER_ACCESS_OPTION_FILE
};
int
error
;
error
=
modify_defaults_file
(
Options
::
config_file
,
option
,
error
=
modify_defaults_file
(
Options
::
config_file
,
option
,
option_value
,
instance_name
,
skip
);
option_value
,
instance_name
,
skip
);
...
...
server-tools/instance-manager/user_map.cc
View file @
914aa5d4
...
@@ -66,7 +66,8 @@ int User::init(const char *line)
...
@@ -66,7 +66,8 @@ int User::init(const char *line)
*/
*/
if
(
password
[
strlen
(
password
)
-
2
]
==
'\r'
)
if
(
password
[
strlen
(
password
)
-
2
]
==
'\r'
)
line_ending_len
=
2
;
line_ending_len
=
2
;
if
(
strlen
(
password
)
!=
SCRAMBLED_PASSWORD_CHAR_LENGTH
+
line_ending_len
)
if
(
strlen
(
password
)
!=
(
uint
)
(
SCRAMBLED_PASSWORD_CHAR_LENGTH
+
line_ending_len
))
goto
err
;
goto
err
;
memcpy
(
user
,
name_begin
,
user_length
);
memcpy
(
user
,
name_begin
,
user_length
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment