File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ list(APPEND CXX_SOURCES ${files})
8686add_definitions(-DNO_LIB_GFLAGS)
8787add_definitions(-DLIBMC_FBTRACE_DISABLE)
8888add_definitions(-DHAVE_CONFIG_H)
89+ add_definitions(-DMCROUTER_OSS_BUILD)
8990
9091include_directories("${CMAKE_SOURCE_DIR}")
9192include_directories("${CMAKE_BINARY_DIR}")
Original file line number Diff line number Diff line change 1+ /home/catullus/data/hhvm/third-party/mcrouter/mcrouter-CMakeLists.txt
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ bool McrouterLogger::start() {
162162 } else {
163163 // If default path is not available and TW backup is enabled, try backup
164164 // path
165+ #ifndef MCROUTER_OSS_BUILD
165166 if (router_.opts ().enable_tw_crash_config_backup_path &&
166167 additionalLogger_) {
167168 auto backupPath = additionalLogger_->getBackupStatsRootPath ();
@@ -181,6 +182,11 @@ bool McrouterLogger::start() {
181182 << " , disabling stats logging" ;
182183 return false ;
183184 }
185+ #else
186+ LOG (WARNING) << " Can't create or chmod " << router_.opts ().stats_root
187+ << " , disabling stats logging" ;
188+ return false ;
189+ #endif
184190 }
185191
186192 boost::filesystem::path path (statsRoot_);
You can’t perform that action at this time.
0 commit comments