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 {
#if defined(__GNUC__) && defined(MY_LF_EXTRA_DEBUG)
#define LF_REQUIRE_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) \
( \
assert(PIN < LF_NUM_PINS_IN_THIS_FILE), \
......
......@@ -28,7 +28,7 @@
#include <my_bit.h>
#include <lf.h>
LF_REQUIRE_PINS(3)
LF_REQUIRE_PINS(3);
/* An element of the list */
typedef struct {
......
......@@ -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
end_pagecache()
......
......@@ -275,9 +275,9 @@ int main()
&my_charset_bin);
#ifdef MY_ATOMIC_MODE_RWLOCKS
#define CYCLES 10000
#define CYCLES 3000
#else
#define CYCLES 1000000
#define CYCLES 300000
#endif
#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