remove boost

Summary: as subject

Test Plan: build

Reviewers: dhruba

Differential Revision: https://reviews.facebook.net/D5469
This commit is contained in:
heyongqiang 2012-09-16 19:33:03 -07:00
parent 33323f2111
commit dcbd6be340
2 changed files with 4 additions and 6 deletions

View File

@ -19,8 +19,6 @@
#include "scribe/scribe_logger.h"
#endif
#include <boost/lexical_cast.hpp>
namespace leveldb {
class MemTable;

View File

@ -5,6 +5,7 @@
#include "db/db_impl.h"
#include <string>
#include <stdint.h>
#include <stdio.h>
#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<std::string>(kMajorVersion);
version_info += ".";
version_info += boost::lexical_cast<std::string>(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;