diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-03-31 15:09:29 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-03-31 15:09:29 -0400 |
commit | 92c3f80f384d2825efeabd0d26aa534c0deb6988 (patch) | |
tree | 0b4a5b5bfc59b98158d059cb0860015c229a89cf /src/mongo/db/ftdc | |
parent | a96f4e5703a0490c14c09b1a2c9ab5a2ba8d3940 (diff) | |
download | mongo-92c3f80f384d2825efeabd0d26aa534c0deb6988.tar.gz |
SERVER-17294 Boost 1.60 Mongo compilation fixes
Diffstat (limited to 'src/mongo/db/ftdc')
-rw-r--r-- | src/mongo/db/ftdc/compressor.cpp | 4 | ||||
-rw-r--r-- | src/mongo/db/ftdc/compressor_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/ftdc/file_writer.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/ftdc/compressor.cpp b/src/mongo/db/ftdc/compressor.cpp index 1c4bfcac7e3..ecf9c7ece6c 100644 --- a/src/mongo/db/ftdc/compressor.cpp +++ b/src/mongo/db/ftdc/compressor.cpp @@ -47,7 +47,7 @@ FTDCCompressor::addSample(const BSONObj& sample, Date_t date) { if (_referenceDoc.isEmpty()) { FTDCBSONUtil::extractMetricsFromDocument(sample, sample, &_metrics); _reset(sample, date); - return {boost::none_t()}; + return {boost::none}; } _metrics.resize(0); @@ -107,7 +107,7 @@ FTDCCompressor::addSample(const BSONObj& sample, Date_t date) { } // The buffer is not full, inform the caller - return {boost::none_t()}; + return {boost::none}; } StatusWith<std::tuple<ConstDataRange, Date_t>> FTDCCompressor::getCompressedSamples() { diff --git a/src/mongo/db/ftdc/compressor_test.cpp b/src/mongo/db/ftdc/compressor_test.cpp index 518e5e84412..6950dd93f66 100644 --- a/src/mongo/db/ftdc/compressor_test.cpp +++ b/src/mongo/db/ftdc/compressor_test.cpp @@ -122,7 +122,7 @@ public: TestTie() : _compressor(&_config) {} ~TestTie() { - validate(boost::none_t()); + validate(boost::none); } StatusWith<boost::optional<std::tuple<ConstDataRange, FTDCCompressor::CompressorState, Date_t>>> diff --git a/src/mongo/db/ftdc/file_writer.cpp b/src/mongo/db/ftdc/file_writer.cpp index 576f946700a..7ab7ee7934c 100644 --- a/src/mongo/db/ftdc/file_writer.cpp +++ b/src/mongo/db/ftdc/file_writer.cpp @@ -205,7 +205,7 @@ Status FTDCFileWriter::flush(const boost::optional<ConstDataRange>& range, Date_ Status FTDCFileWriter::close() { if (_archiveStream.is_open()) { - Status s = flush(boost::none_t(), Date_t()); + Status s = flush(boost::none, Date_t()); _archiveStream.close(); |