From dcbd6be3406c6eccc0959f80eae4be58b2ee74ff Mon Sep 17 00:00:00 2001 From: heyongqiang Date: Sun, 16 Sep 2012 19:33:03 -0700 Subject: [PATCH] remove boost Summary: as subject Test Plan: build Reviewers: dhruba Differential Revision: https://reviews.facebook.net/D5469 --- db/db_impl.h | 2 -- db/db_stats_logger.cc | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/db/db_impl.h b/db/db_impl.h index 174ac4231..236aea85b 100644 --- a/db/db_impl.h +++ b/db/db_impl.h @@ -19,8 +19,6 @@ #include "scribe/scribe_logger.h" #endif -#include - namespace leveldb { class MemTable; diff --git a/db/db_stats_logger.cc b/db/db_stats_logger.cc index aba3ced43..4fd0f9103 100644 --- a/db/db_stats_logger.cc +++ b/db/db_stats_logger.cc @@ -5,6 +5,7 @@ #include "db/db_impl.h" #include #include +#include #include "db/version_set.h" #include "leveldb/db.h" #include "leveldb/env.h" @@ -53,10 +54,9 @@ void DBImpl::LogDBDeployStats() { return; } - std::string version_info; - version_info += boost::lexical_cast(kMajorVersion); - version_info += "."; - version_info += boost::lexical_cast(kMinorVersion); + char tmp_ver[100]; + sprintf(tmp_ver, "%d.%d", kMajorVersion, kMinorVersion); + std::string version_info(tmp_ver); uint64_t file_total_size = 0; uint32_t file_total_num = 0;