From 165cec6ef668efc075337d10eafca95e28b29c4c Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Thu, 15 Sep 2016 13:44:33 -0700 Subject: [PATCH] Fix DBWALTest.RecoveryWithLogDataForSomeCFs with mac Summary: Seems there's no std::array on mac+clang. Use raw array instead. Test Plan: run ./db_wal_test on mac. Reviewers: andrewkr Reviewed By: andrewkr Subscribers: andrewkr, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D64005 --- db/db_wal_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_wal_test.cc b/db/db_wal_test.cc index 10520b774..7e29fbb70 100644 --- a/db/db_wal_test.cc +++ b/db/db_wal_test.cc @@ -312,7 +312,7 @@ TEST_F(DBWALTest, RecoveryWithLogDataForSomeCFs) { CreateAndReopenWithCF({"pikachu"}, CurrentOptions()); ASSERT_OK(Put(1, "foo", "v1")); ASSERT_OK(Put(1, "foo", "v2")); - std::array earliest_log_nums; + uint64_t earliest_log_nums[2]; for (int i = 0; i < 2; ++i) { if (i > 0) { ReopenWithColumnFamilies({"default", "pikachu"}, CurrentOptions());