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
10436bf9
Commit
10436bf9
authored
Oct 16, 2002
by
miguel@hegel.br
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the 100% CPU usage with TZ variable
parent
a54df74a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mysys/my_init.c
mysys/my_init.c
+4
-0
No files found.
mysys/my_init.c
View file @
10436bf9
...
@@ -218,6 +218,10 @@ static void my_win_init(void)
...
@@ -218,6 +218,10 @@ static void my_win_init(void)
setlocale
(
LC_CTYPE
,
""
);
/* To get right sortorder */
setlocale
(
LC_CTYPE
,
""
);
/* To get right sortorder */
/* Clear the OS system variable TZ and avoid the 100% CPU usage */
_putenv
(
"TZ="
);
_tzset
();
/* apre la chiave HKEY_LOCAL_MACHINES\software\MySQL */
/* apre la chiave HKEY_LOCAL_MACHINES\software\MySQL */
if
(
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,(
LPCTSTR
)
targetKey
,
0
,
if
(
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,(
LPCTSTR
)
targetKey
,
0
,
KEY_READ
,
&
hSoftMysql
)
!=
ERROR_SUCCESS
)
KEY_READ
,
&
hSoftMysql
)
!=
ERROR_SUCCESS
)
...
...
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