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
This commit is contained in:
Yi Wu 2016-09-15 13:44:33 -07:00
parent 06b4785fec
commit 40cfa3e021

View File

@ -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<uint64_t, 2> earliest_log_nums;
uint64_t earliest_log_nums[2];
for (int i = 0; i < 2; ++i) {
if (i > 0) {
ReopenWithColumnFamilies({"default", "pikachu"}, CurrentOptions());