|
1 |
| -/* Copyright (C) 2009 Monty Program Ab |
| 1 | +/* Copyright (C) 2009, 2017, MariaDB Corporation. |
2 | 2 |
|
3 | 3 | This program is free software; you can redistribute it and/or modify
|
4 | 4 | it under the terms of the GNU General Public License as published by
|
|
16 | 16 | /* Defining what to log to slow log */
|
17 | 17 |
|
18 | 18 | #define LOG_SLOW_VERBOSITY_INIT 0
|
19 |
| -#define LOG_SLOW_VERBOSITY_INNODB 1 << 0 |
20 |
| -#define LOG_SLOW_VERBOSITY_QUERY_PLAN 1 << 1 |
| 19 | +#define LOG_SLOW_VERBOSITY_INNODB (1U << 0) |
| 20 | +#define LOG_SLOW_VERBOSITY_QUERY_PLAN (1U << 1) |
21 | 21 |
|
22 | 22 | #define QPLAN_INIT QPLAN_QC_NO
|
23 | 23 |
|
24 |
| -#define QPLAN_ADMIN 1 << 0 |
25 |
| -#define QPLAN_FILESORT 1 << 1 |
26 |
| -#define QPLAN_FILESORT_DISK 1 << 2 |
27 |
| -#define QPLAN_FULL_JOIN 1 << 3 |
28 |
| -#define QPLAN_FULL_SCAN 1 << 4 |
29 |
| -#define QPLAN_QC 1 << 5 |
30 |
| -#define QPLAN_QC_NO 1 << 6 |
31 |
| -#define QPLAN_TMP_DISK 1 << 7 |
32 |
| -#define QPLAN_TMP_TABLE 1 << 8 |
| 24 | +#define QPLAN_ADMIN (1U << 0) |
| 25 | +#define QPLAN_FILESORT (1U << 1) |
| 26 | +#define QPLAN_FILESORT_DISK (1U << 2) |
| 27 | +#define QPLAN_FULL_JOIN (1U << 3) |
| 28 | +#define QPLAN_FULL_SCAN (1U << 4) |
| 29 | +#define QPLAN_QC (1U << 5) |
| 30 | +#define QPLAN_QC_NO (1U << 6) |
| 31 | +#define QPLAN_TMP_DISK (1U << 7) |
| 32 | +#define QPLAN_TMP_TABLE (1U << 8) |
33 | 33 | /* ... */
|
34 |
| -#define QPLAN_MAX ((ulong) 1) << 31 /* reserved as placeholder */ |
35 |
| - |
| 34 | +#define QPLAN_MAX (1U << 31) /* reserved as placeholder */ |
0 commit comments