diff --git a/db/version_edit.h b/db/version_edit.h index d727c3266..ee1f6c437 100644 --- a/db/version_edit.h +++ b/db/version_edit.h @@ -99,7 +99,7 @@ struct FdWithKeyRange { Slice largest_key; // slice that contain largest key FdWithKeyRange() - : fd(0, 0), + : fd(), smallest_key(), largest_key() { } diff --git a/db/version_set_test.cc b/db/version_set_test.cc index 8d95c3aa9..2593b63b6 100644 --- a/db/version_set_test.cc +++ b/db/version_set_test.cc @@ -118,7 +118,7 @@ class FindLevelFileTest { // add compressd_level_ size_t num = level_files_.num_files; auto& file = level_files_.files[num]; - file.fd = FileDescriptor(num + 1, 0); + file.fd = FileDescriptor(num + 1, 0, 0); file.smallest_key = Slice(mem, smallest_slice.size()); file.largest_key = Slice(mem + smallest_slice.size(), largest_slice.size());