diff --git a/file/writable_file_writer.h b/file/writable_file_writer.h index ede71d218..8eeb06734 100644 --- a/file/writable_file_writer.h +++ b/file/writable_file_writer.h @@ -160,7 +160,9 @@ class WritableFileWriter { bool perform_data_verification_; uint32_t buffered_data_crc32c_checksum_; bool buffered_data_with_checksum_; +#ifndef ROCKSDB_LITE Temperature temperature_; +#endif // ROCKSDB_LITE public: WritableFileWriter( @@ -191,8 +193,10 @@ class WritableFileWriter { checksum_finalized_(false), perform_data_verification_(perform_data_verification), buffered_data_crc32c_checksum_(0), - buffered_data_with_checksum_(buffered_data_with_checksum), - temperature_(options.temperature) { + buffered_data_with_checksum_(buffered_data_with_checksum) { +#ifndef ROCKSDB_LITE + temperature_ = options.temperature; +#endif // ROCKSDB_LITE assert(!use_direct_io() || max_buffer_size_ > 0); TEST_SYNC_POINT_CALLBACK("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_));