diff --git a/sstables/sstables.cc b/sstables/sstables.cc index e021e91379..6ec6ba5919 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -329,7 +329,7 @@ future<> sstable::read_toc() { throw malformed_sstable_exception("SSTable too big: " + to_sstring(size) + " bytes."); } - auto buf = bufptr.get(); + std::experimental::string_view buf(bufptr.get(), size); std::vector comps; boost::split(comps , buf, boost::is_any_of("\n"));