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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
adfdcb19
Commit
adfdcb19
authored
Mar 22, 2007
by
Antony@floppy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for 5.1-arch repository to compile on Windows.
parent
13260841
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
CMakeLists.txt
CMakeLists.txt
+1
-1
client/CMakeLists.txt
client/CMakeLists.txt
+1
-0
client/mysqlslap.c
client/mysqlslap.c
+2
-6
No files found.
CMakeLists.txt
View file @
adfdcb19
...
...
@@ -131,10 +131,10 @@ ADD_SUBDIRECTORY(dbug)
ADD_SUBDIRECTORY
(
strings
)
ADD_SUBDIRECTORY
(
regex
)
ADD_SUBDIRECTORY
(
mysys
)
ADD_SUBDIRECTORY
(
zlib
)
ADD_SUBDIRECTORY
(
extra/yassl
)
ADD_SUBDIRECTORY
(
extra/yassl/taocrypt
)
ADD_SUBDIRECTORY
(
extra
)
ADD_SUBDIRECTORY
(
zlib
)
ADD_SUBDIRECTORY
(
storage/heap
)
ADD_SUBDIRECTORY
(
storage/myisam
)
ADD_SUBDIRECTORY
(
storage/myisammrg
)
...
...
client/CMakeLists.txt
View file @
adfdcb19
...
...
@@ -95,6 +95,7 @@ ADD_EXECUTABLE(mysqladmin mysqladmin.cc)
TARGET_LINK_LIBRARIES
(
mysqladmin mysqlclient mysys dbug yassl taocrypt zlib wsock32
)
ADD_EXECUTABLE
(
mysqlslap mysqlslap.c
)
SET_SOURCE_FILES_PROPERTIES
(
mysqlslap.c PROPERTIES COMPILE_FLAGS
"-DTHREADS"
)
TARGET_LINK_LIBRARIES
(
mysqlslap mysqlclient mysys yassl taocrypt zlib wsock32 dbug
)
ADD_EXECUTABLE
(
echo echo.c
)
...
...
client/mysqlslap.c
View file @
adfdcb19
...
...
@@ -82,10 +82,6 @@
#define SELECT_TYPE_REQUIRES_PREFIX 5
#include "client_priv.h"
#include <my_pthread.h>
#include <my_sys.h>
#include <m_string.h>
#include <mysql.h>
#include <mysqld_error.h>
#include <my_dir.h>
#include <signal.h>
...
...
@@ -1554,13 +1550,13 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
uint
x
;
struct
timeval
start_time
,
end_time
;
thread_context
con
;
pthread_t
mainthread
;
/* Thread descriptor */
pthread_attr_t
attr
;
/* Thread attributes */
DBUG_ENTER
(
"run_scheduler"
);
con
.
stmt
=
stmts
;
con
.
limit
=
limit
;
pthread_t
mainthread
;
/* Thread descriptor */
pthread_attr_t
attr
;
/* Thread attributes */
pthread_attr_init
(
&
attr
);
pthread_attr_setdetachstate
(
&
attr
,
PTHREAD_CREATE_DETACHED
);
...
...
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