make util/env_posix.cc work under mac

Summary: This diff invoves some more complicated issues in the posix environment.

Test Plan: works under mac os. will need to verify dev box.

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D14061
This commit is contained in:
kailiu
2013-11-16 23:44:39 -08:00
parent 7604e2f70c
commit 97d8e573a6
11 changed files with 241 additions and 79 deletions

View File

@@ -273,7 +273,7 @@ Status BlockBasedTable::Open(const Options& options,
auto err_msg =
"[Warning] Encountered error while reading data from stats block " +
s.ToString();
Log(rep->options.info_log, err_msg.c_str());
Log(rep->options.info_log, "%s", err_msg.c_str());
}
}