From 21f2492ac0d5f5a020e72d25d893ade2d37a6b5d Mon Sep 17 00:00:00 2001 From: sdong Date: Fri, 5 Jun 2015 14:29:22 -0700 Subject: [PATCH] Fix CYGWin release build Summary: Change from one std::to_string() to ToString() for Cygwin build Test Plan: Build it under cygwin Reviewers: rven, anthony, IslamAbdelRahman, igor, kradhakrishnan Reviewed By: igor, kradhakrishnan Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D39657 --- .../write_batch_with_index/write_batch_with_index_internal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/write_batch_with_index/write_batch_with_index_internal.cc b/utilities/write_batch_with_index/write_batch_with_index_internal.cc index b9cf644af..4191e84e0 100644 --- a/utilities/write_batch_with_index/write_batch_with_index_internal.cc +++ b/utilities/write_batch_with_index/write_batch_with_index_internal.cc @@ -10,6 +10,7 @@ #include "rocksdb/db.h" #include "rocksdb/utilities/write_batch_with_index.h" #include "util/coding.h" +#include "util/string_util.h" #include "utilities/write_batch_with_index/write_batch_with_index_internal.h" namespace rocksdb { @@ -187,7 +188,7 @@ WriteBatchWithIndexInternal::Result WriteBatchWithIndexInternal::GetFromBatch( default: { result = WriteBatchWithIndexInternal::Result::kError; (*s) = Status::Corruption("Unexpected entry in WriteBatchWithIndex:", - std::to_string(entry.type)); + ToString(entry.type)); break; } }