From 5025c7ec09fcaf323c04bbbcf340bb7f4aa6aed6 Mon Sep 17 00:00:00 2001 From: rockeet Date: Thu, 1 Apr 2021 11:27:57 -0700 Subject: [PATCH] version_set_test.cc: remove a redundent obj copy (#7880) Summary: Remove redundant obj copy Pull Request resolved: https://github.com/facebook/rocksdb/pull/7880 Reviewed By: akankshamahajan15 Differential Revision: D26921119 Pulled By: riversand963 fbshipit-source-id: f227da688b067870a069e728a67799a8a95fee99 --- db/version_set_test.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/db/version_set_test.cc b/db/version_set_test.cc index 204484dc7..eb8e313e7 100644 --- a/db/version_set_test.cc +++ b/db/version_set_test.cc @@ -2793,11 +2793,9 @@ class VersionSetTestMissingFiles : public VersionSetTestBase, s = fs_->GetFileSize(fname, IOOptions(), &file_size, nullptr); ASSERT_OK(s); ASSERT_NE(0, file_size); - FileMetaData meta; - meta = FileMetaData(file_num, /*file_path_id=*/0, file_size, ikey, ikey, - 0, 0, false, 0, 0, 0, kUnknownFileChecksum, - kUnknownFileChecksumFuncName); - file_metas->emplace_back(meta); + file_metas->emplace_back(file_num, /*file_path_id=*/0, file_size, ikey, + ikey, 0, 0, false, 0, 0, 0, kUnknownFileChecksum, + kUnknownFileChecksumFuncName); } }