diff --git a/sstables/sstables.cc b/sstables/sstables.cc index 73901ba50f..27c2524fc3 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -419,9 +419,7 @@ future<> parse(random_access_reader& in, disk_hash& h) { template future<> write(file_writer& out, std::unordered_map& map) { return do_for_each(map.begin(), map.end(), [&out, &map] (auto& val) { - Key key = val.first; - Value value = val.second; - return write(out, key, value); + return write(out, val.first, val.second); }); }