From 4ade89962d9d6c921c405f3752de3963ef1a1901 Mon Sep 17 00:00:00 2001 From: Venkatesh Radhakrishnan Date: Tue, 24 Feb 2015 16:24:53 -0800 Subject: [PATCH] Fix compile error on MacOS. Summary: In a release build, a member was not being accessed. This member was only being accessed in a debug build. We now add an accessor function for this member and the buid succeeds. Test Plan: build release/unity/debug on linux/mac Reviewers: sdong, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D34035 --- db/managed_iterator.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/managed_iterator.cc b/db/managed_iterator.cc index 2a783a0e2..8dd5f4d27 100644 --- a/db/managed_iterator.cc +++ b/db/managed_iterator.cc @@ -43,6 +43,7 @@ class MILock { XFUNC_TEST("managed_xftest_release", "managed_unlock", managed_unlock1, xf_manage_release, mi_); } + ManagedIterator* GetManagedIterator() { return mi_; } private: std::mutex* const mu_;