From 311503f3284be2cea6ab8d059dd24f85908e8277 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Sat, 8 Apr 2017 07:05:01 +0400 Subject: [PATCH] storage/rocksdb/rdb_datadic.cc failed to compile on big endian machines (wrong usage of static_assert) --- storage/rocksdb/rdb_datadic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/rocksdb/rdb_datadic.cc b/storage/rocksdb/rdb_datadic.cc index fd5424c2c23..43b67210a12 100644 --- a/storage/rocksdb/rdb_datadic.cc +++ b/storage/rocksdb/rdb_datadic.cc @@ -1303,7 +1303,7 @@ static int rdb_unpack_floating_point( // On little-endian, swap the bytes around swap_func(dst, tmp); #else - static_assert(swap_func == nullptr, "Assuming that no swapping is needed."); + DBUG_ASSERT(swap_func == nullptr); #endif return UNPACK_SUCCESS;