Guarding files_ attribute with #ifndef NDEBUG guard in FilePicker class.

Summary: Adding guards to files_ attribute of FilePicker class. This attribute is used only in DEBUG mode. This fixes build of static_lib in mac.

Test Plan:
make static_lib in mac
make check all in devserver

Reviewers: ljin, igor, sdong

Reviewed By: sdong

Differential Revision: https://reviews.facebook.net/D20163
main
Radheshyam Balasundaram 10 years ago
parent 3178510153
commit 0d57e3ad7d
  1. 4
      db/version_set.cc

@ -107,7 +107,9 @@ class FilePicker {
curr_level_(-1),
search_left_bound_(0),
search_right_bound_(FileIndexer::kLevelMaxIndex),
#ifndef NDEBUG
files_(files),
#endif
file_levels_(file_levels),
user_key_(user_key),
ikey_(ikey),
@ -216,7 +218,9 @@ class FilePicker {
unsigned int curr_level_;
int search_left_bound_;
int search_right_bound_;
#ifndef NDEBUG
std::vector<FileMetaData*>* files_;
#endif
autovector<FileLevel>* file_levels_;
bool search_ended_;
FileLevel* curr_file_level_;

Loading…
Cancel
Save