diff --git a/src/groups/mqb/mqbs/mqbs_datastore.h b/src/groups/mqb/mqbs/mqbs_datastore.h index d3617d46a..f9f18116f 100644 --- a/src/groups/mqb/mqbs/mqbs_datastore.h +++ b/src/groups/mqb/mqbs/mqbs_datastore.h @@ -231,7 +231,7 @@ template void hashAppend(HASH_ALGORITHM& hashAlgo, const DataStoreRecordKey& key); // ================================ -// class DataStoreRecordKeyHashAlgo +// class DataStoreRecordKey // ================================ /// This class provides a hashing algorithm for `mqbs::DataStoreRecordKey`. @@ -240,7 +240,7 @@ void hashAppend(HASH_ALGORITHM& hashAlgo, const DataStoreRecordKey& key); /// `bslh::Hash<>`) in `bslh` framework lingo (see BDE "Modular Hashing" /// document). Note that this class is not templatized on a /// `HASHING_ALGORITHM` (unlike recommended in the document). -class DataStoreRecordKeyHashAlgo { +class DataStoreRecordKey { public: // TYPES typedef bsls::Types::Uint64 result_type; @@ -833,7 +833,8 @@ inline DataStoreRecordKeyHashAlgo::result_type DataStoreRecordKeyHashAlgo::operator()(const TYPE& type) const { return type.d_sequenceNum + - static_cast(type.d_primaryLeaseId) << 32; + static_cast(type.d_primaryLeaseId) + << 32; } // -----------------------------