Skip to content

Commit

Permalink
wdt cont build with delays
Browse files Browse the repository at this point in the history
Summary: wdt cont build with delays

Reviewed By: @nikunjy

Differential Revision: D2501860

fb-gh-sync-id: 4fc85e79d1085d7a9a517a7c046ce82f0ebddc64
  • Loading branch information
ldemailly committed Oct 6, 2015
1 parent 56d8e5a commit 68d0512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
#set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "-msse4.2")
#set(CMAKE_CXX_FLAGS "-msse4.2 -Wextra -Wsign-compare -Wunused-variable")
#set(CMAKE_CXX_FLAGS "-msse4.2 -Wextra -Wsign-compare -Wunused-variable -Wconversion -Wsign-conversion")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "_bin/wdt")

# Check that we have the Folly source tree
Expand Down
3 changes: 2 additions & 1 deletion FileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ ErrorCode FileWriter::open() {
const int64_t ret = lseek(fd_, blockDetails_->offset, SEEK_SET);
RECORD_PERF_RESULT(PerfStatReport::FILE_SEEK);
if (ret < 0) {
PLOG(ERROR) << "Unable to seek " << blockDetails_->fileName;
PLOG(ERROR) << "Unable to seek to " << blockDetails_->offset << " for "
<< blockDetails_->fileName;
close();
}
}
Expand Down

0 comments on commit 68d0512

Please sign in to comment.