Commit 5750daa4 authored by unknown's avatar unknown

Maria - post-review change of "fixes for gcc -ansi".

And reducing the time taken by my_atomic-t.


include/lf.h:
  fix to be able to add a ";" at the end of the macro's invokation
  (removing it here, removes a warning from "gcc -ansi" about a
  standalone ";").
mysys/lf_hash.c:
  ";" is ok now after LF_REQUIRE_PINS
mysys/mf_pagecache.c:
  comment fix
unittest/mysys/my_atomic-t.c:
  decreasing number of iterations to make test take less time.
parent b72903fe
...@@ -136,7 +136,7 @@ typedef struct { ...@@ -136,7 +136,7 @@ typedef struct {
#if defined(__GNUC__) && defined(MY_LF_EXTRA_DEBUG) #if defined(__GNUC__) && defined(MY_LF_EXTRA_DEBUG)
#define LF_REQUIRE_PINS(N) \ #define LF_REQUIRE_PINS(N) \
static const char require_pins[LF_PINBOX_PINS-N]; \ static const char require_pins[LF_PINBOX_PINS-N]; \
static const int LF_NUM_PINS_IN_THIS_FILE= N; static const int LF_NUM_PINS_IN_THIS_FILE= N
#define _lf_pin(PINS, PIN, ADDR) \ #define _lf_pin(PINS, PIN, ADDR) \
( \ ( \
assert(PIN < LF_NUM_PINS_IN_THIS_FILE), \ assert(PIN < LF_NUM_PINS_IN_THIS_FILE), \
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <my_bit.h> #include <my_bit.h>
#include <lf.h> #include <lf.h>
LF_REQUIRE_PINS(3) LF_REQUIRE_PINS(3);
/* An element of the list */ /* An element of the list */
typedef struct { typedef struct {
......
...@@ -970,7 +970,7 @@ void change_pagecache_param(PAGECACHE *pagecache, uint division_limit, ...@@ -970,7 +970,7 @@ void change_pagecache_param(PAGECACHE *pagecache, uint division_limit,
/* /*
Flushes and removes page cache from memory Removes page cache from memory. Does NOT flush pages to disk.
SYNOPSIS SYNOPSIS
end_pagecache() end_pagecache()
......
...@@ -275,9 +275,9 @@ int main() ...@@ -275,9 +275,9 @@ int main()
&my_charset_bin); &my_charset_bin);
#ifdef MY_ATOMIC_MODE_RWLOCKS #ifdef MY_ATOMIC_MODE_RWLOCKS
#define CYCLES 10000 #define CYCLES 3000
#else #else
#define CYCLES 1000000 #define CYCLES 300000
#endif #endif
#define THREADS 100 #define THREADS 100
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment