Shuffle member initialization in constructor.

This commit is contained in:
Alex Miller 2019-10-04 13:35:52 -07:00
parent b3fd4f62a7
commit a34a009bf0
1 changed files with 2 additions and 4 deletions

View File

@ -764,10 +764,8 @@ class SharedLogsKey {
KeyValueStoreType storeType;
public:
SharedLogsKey( const TLogOptions& options, KeyValueStoreType kvst ) {
logVersion = options.version;
spillType = options.spillType;
storeType = kvst;
SharedLogsKey( const TLogOptions& options, KeyValueStoreType kvst )
: logVersion(options.version), spillType(options.spillType), storeType(kvst) {
if (logVersion >= TLogVersion::V5)
spillType = TLogSpillType::UNSET;
}