Initialize variable in constructor for PosixEnv::checkedDiskForMmap_

Summary: This caused compilation problems on some gcc platforms during the third-partyrelease

Test Plan: make

Reviewers: sheki

Reviewed By: sheki

Differential Revision: https://reviews.facebook.net/D9627
main
Mayank Agarwal 12 years ago
parent 91660e048f
commit 38d54832f7
  1. 8
      util/env_posix.cc

@ -907,8 +907,8 @@ class PosixEnv : public Env {
} }
private: private:
bool checkedDiskForMmap_ = false; bool checkedDiskForMmap_;
bool forceMmapOff = false; // do we override Env options? bool forceMmapOff; // do we override Env options?
void PthreadCall(const char* label, int result) { void PthreadCall(const char* label, int result) {
if (result != 0) { if (result != 0) {
@ -965,7 +965,9 @@ class PosixEnv : public Env {
BGQueue queue_; BGQueue queue_;
}; };
PosixEnv::PosixEnv() : page_size_(getpagesize()), PosixEnv::PosixEnv() : checkedDiskForMmap_(false),
forceMmapOff(false),
page_size_(getpagesize()),
started_bgthread_(0), started_bgthread_(0),
num_threads_(1), num_threads_(1),
queue_size_(0) { queue_size_(0) {

Loading…
Cancel
Save