Skip to content

Commit f853a99

Browse files
committed
5.6.30-76.3
1 parent 30d9d4e commit f853a99

File tree

77 files changed

+862
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+862
-309
lines changed

storage/tokudb/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SET(TOKUDB_VERSION 5.6.29-76.2)
1+
SET(TOKUDB_VERSION 5.6.30-76.3)
22
# PerconaFT only supports x86-64 and cmake-2.8.9+
33
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND
44
NOT CMAKE_VERSION VERSION_LESS "2.8.9")
@@ -21,7 +21,7 @@ include(CheckCXXCompilerFlag)
2121
# pick language dialect
2222
check_cxx_compiler_flag(-std=c++11 HAVE_STDCXX11)
2323
if (HAVE_STDCXX11)
24-
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
24+
set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-deprecated-declarations ${CMAKE_CXX_FLAGS}")
2525
else ()
2626
message(FATAL_ERROR "${CMAKE_CXX_COMPILER} doesn't support -std=c++11, you need one that does.")
2727
endif ()

storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ set_cflags_if_supported(
9595
-Wno-error=missing-format-attribute
9696
-Wno-error=address-of-array-temporary
9797
-Wno-error=tautological-constant-out-of-range-compare
98+
-Wno-error=maybe-uninitialized
9899
-Wno-ignored-attributes
99100
-Wno-error=extern-c-compat
101+
-Wno-pointer-bool-conversion
100102
-fno-rtti
101103
-fno-exceptions
102104
)
@@ -152,13 +154,18 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
152154
set(CMAKE_C_FLAGS_RELEASE "-g -O3 ${CMAKE_C_FLAGS_RELEASE} -UNDEBUG")
153155
set(CMAKE_CXX_FLAGS_RELEASE "-g -O3 ${CMAKE_CXX_FLAGS_RELEASE} -UNDEBUG")
154156
else ()
157+
if (APPLE)
158+
set(FLTO_OPTS "-fwhole-program")
159+
else ()
160+
set(FLTO_OPTS "-fuse-linker-plugin")
161+
endif()
155162
# we overwrite this because the default passes -DNDEBUG and we don't want that
156-
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-flto -fuse-linker-plugin ${CMAKE_C_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG")
157-
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-flto -fuse-linker-plugin ${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG")
158-
set(CMAKE_C_FLAGS_RELEASE "-g -O3 -flto -fuse-linker-plugin ${CMAKE_C_FLAGS_RELEASE} -UNDEBUG")
159-
set(CMAKE_CXX_FLAGS_RELEASE "-g -O3 -flto -fuse-linker-plugin ${CMAKE_CXX_FLAGS_RELEASE} -UNDEBUG")
160-
set(CMAKE_EXE_LINKER_FLAGS "-g -fuse-linker-plugin ${CMAKE_EXE_LINKER_FLAGS}")
161-
set(CMAKE_SHARED_LINKER_FLAGS "-g -fuse-linker-plugin ${CMAKE_SHARED_LINKER_FLAGS}")
163+
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-flto ${FLTO_OPTS} ${CMAKE_C_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG")
164+
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-flto ${FLTO_OPTS} ${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG")
165+
set(CMAKE_C_FLAGS_RELEASE "-g -O3 -flto ${FLTO_OPTS} ${CMAKE_C_FLAGS_RELEASE} -UNDEBUG")
166+
set(CMAKE_CXX_FLAGS_RELEASE "-g -O3 -flto ${FLTO_OPTS} ${CMAKE_CXX_FLAGS_RELEASE} -UNDEBUG")
167+
set(CMAKE_EXE_LINKER_FLAGS "-g ${FLTO_OPTS} ${CMAKE_EXE_LINKER_FLAGS}")
168+
set(CMAKE_SHARED_LINKER_FLAGS "-g ${FLTO_OPTS} ${CMAKE_SHARED_LINKER_FLAGS}")
162169
endif ()
163170

164171
## set warnings
@@ -192,15 +199,6 @@ endif ()
192199
set(CMAKE_C_FLAGS "-Wall -Werror ${CMAKE_C_FLAGS}")
193200
set(CMAKE_CXX_FLAGS "-Wall -Werror ${CMAKE_CXX_FLAGS}")
194201

195-
## need to set -stdlib=libc++ to get real c++11 support on darwin
196-
if (APPLE)
197-
if (CMAKE_GENERATOR STREQUAL Xcode)
198-
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
199-
else ()
200-
add_definitions(-stdlib=libc++)
201-
endif ()
202-
endif ()
203-
204202
# pick language dialect
205203
set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS}")
206204
check_cxx_compiler_flag(-std=c++11 HAVE_STDCXX11)

storage/tokudb/PerconaFT/ft/logger/log_upgrade.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ toku_maybe_upgrade_log(const char *env_dir, const char *log_dir, LSN * lsn_of_cl
265265
TXNID last_xid = TXNID_NONE;
266266
r = verify_clean_shutdown_of_log_version(log_dir, version_of_logs_on_disk, &last_lsn, &last_xid);
267267
if (r != 0) {
268-
if (TOKU_LOG_VERSION_25 <= version_of_logs_on_disk &&
269-
version_of_logs_on_disk <= TOKU_LOG_VERSION_27 &&
268+
if (version_of_logs_on_disk >= TOKU_LOG_VERSION_25 &&
269+
version_of_logs_on_disk <= TOKU_LOG_VERSION_29 &&
270270
TOKU_LOG_VERSION_29 == TOKU_LOG_VERSION) {
271271
r = 0; // can do recovery on dirty shutdown
272272
} else {

storage/tokudb/PerconaFT/ft/logger/recover.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int tokuft_recover(DB_ENV *env,
6767

6868
// Effect: Check the tokuft logs to determine whether or not we need to run recovery.
6969
// If the log is empty or if there is a clean shutdown at the end of the log, then we
70-
// dont need to run recovery.
70+
// don't need to run recovery.
7171
// Returns: true if we need recovery, otherwise false.
7272
int tokuft_needs_recovery(const char *logdir, bool ignore_empty_log);
7373

storage/tokudb/PerconaFT/ft/tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,13 @@ if(BUILD_TESTING OR BUILD_FT_TESTS)
112112

113113
declare_custom_tests(test-upgrade-recovery-logs)
114114
file(GLOB upgrade_tests "${TOKUDB_DATA}/upgrade-recovery-logs-??-clean")
115+
file(GLOB upgrade_tests "${CMAKE_CURRENT_SOURCE_DIR}/upgrade.data/upgrade-recovery-logs-??-clean")
115116
foreach(test ${upgrade_tests})
116117
get_filename_component(test_basename "${test}" NAME)
117118
add_ft_test_aux(test-${test_basename} test-upgrade-recovery-logs ${test})
118119
endforeach(test)
119120
file(GLOB upgrade_tests "${TOKUDB_DATA}/upgrade-recovery-logs-??-dirty")
121+
file(GLOB upgrade_tests "${CMAKE_CURRENT_SOURCE_DIR}/upgrade.data/upgrade-recovery-logs-??-dirty")
120122
foreach(test ${upgrade_tests})
121123
get_filename_component(test_basename "${test}" NAME)
122124
add_ft_test_aux(test-${test_basename} test-upgrade-recovery-logs ${test})

storage/tokudb/PerconaFT/ft/tests/make-tree.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ append_leaf(FTNODE leafnode, void *key, size_t keylen, void *val, size_t vallen)
8787

8888
leafnode->max_msn_applied_to_node_on_disk = msn;
8989

90-
// dont forget to dirty the node
90+
// don't forget to dirty the node
9191
leafnode->dirty = 1;
9292
}
9393

storage/tokudb/PerconaFT/ft/tests/msnfilter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ append_leaf(FT_HANDLE ft, FTNODE leafnode, void *key, uint32_t keylen, void *val
160160
assert(pair2.call_count==2);
161161
}
162162

163-
// dont forget to dirty the node
163+
// don't forget to dirty the node
164164
leafnode->dirty = 1;
165165
}
166166

storage/tokudb/PerconaFT/ft/tests/test-upgrade-recovery-logs.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static void run_recovery(const char *testdir) {
8181
bool upgrade_in_progress;
8282
r = toku_maybe_upgrade_log(testdir, testdir, &lsn_of_clean_shutdown, &upgrade_in_progress);
8383
if (strcmp(shutdown, "dirty") == 0 && log_version <= 24) {
84-
CKERR2(r, TOKUDB_UPGRADE_FAILURE); // we dont support dirty upgrade from versions <= 24
84+
CKERR2(r, TOKUDB_UPGRADE_FAILURE); // we don't support dirty upgrade from versions <= 24
8585
return;
8686
} else {
8787
CKERR(r);

0 commit comments

Comments
 (0)