diff --git a/db/compaction/compaction_iterator_test.cc b/db/compaction/compaction_iterator_test.cc index ddda79a4c..94f297961 100644 --- a/db/compaction/compaction_iterator_test.cc +++ b/db/compaction/compaction_iterator_test.cc @@ -184,7 +184,7 @@ class TestSnapshotChecker : public SnapshotChecker { public: explicit TestSnapshotChecker( SequenceNumber last_committed_sequence, - const std::unordered_map& snapshots = {}) + const std::unordered_map& snapshots = {{}}) : last_committed_sequence_(last_committed_sequence), snapshots_(snapshots) {} diff --git a/util/filter_bench.cc b/util/filter_bench.cc index 9dc2ed436..6ff496cb1 100644 --- a/util/filter_bench.cc +++ b/util/filter_bench.cc @@ -606,7 +606,7 @@ double FilterBench::RandomQueryTest(uint32_t inside_threshold, bool dry_run, } if (!dry_run) { - fp_rate_report_ = std::ostringstream(); + fp_rate_report_.str(""); uint64_t q = 0; uint64_t fp = 0; double worst_fp_rate = 0.0;