Fix Windows constexpr issue and '#ifdef' column_family_test in Release.

main
Dmitri Smirnov 9 years ago
parent dd2e1eeb35
commit 2754ec9994
  1. 7
      db/column_family_test.cc
  2. 2
      utilities/write_batch_with_index/write_batch_with_index_internal.h

@ -23,6 +23,8 @@
#include "util/sync_point.h"
#include "utilities/merge_operators.h"
#if !(defined NDEBUG) || !defined(OS_WIN)
namespace rocksdb {
namespace {
@ -1260,8 +1262,13 @@ TEST_F(ColumnFamilyTest, FlushAndDropRaceCondition) {
}
} // namespace rocksdb
#endif
int main(int argc, char** argv) {
#if !(defined NDEBUG) || !defined(OS_WIN)
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
#else
return 0;
#endif
}

@ -30,7 +30,7 @@ struct WriteBatchIndexEntry {
// If this flag appears in the offset, it indicates a key that is smaller
// than any other entry for the same column family
static const size_t kFlagMin = std::numeric_limits<size_t>::max();
static const size_t kFlagMin = UINT64_MAX;
size_t offset; // offset of an entry in write batch's string buffer.
uint32_t column_family; // column family of the entry

Loading…
Cancel
Save