Skip to content

Commit

Permalink
Formatter: mqbs_datastore.h
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
  • Loading branch information
678098 authored Aug 2, 2024
1 parent 854d104 commit 85a7ea6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/groups/mqb/mqbs/mqbs_datastore.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ template <class HASH_ALGORITHM>
void hashAppend(HASH_ALGORITHM& hashAlgo, const DataStoreRecordKey& key);

// ================================
// class DataStoreRecordKeyHashAlgo
// class DataStoreRecordKey
// ================================

/// This class provides a hashing algorithm for `mqbs::DataStoreRecordKey`.
Expand All @@ -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;
Expand Down Expand Up @@ -833,7 +833,8 @@ inline DataStoreRecordKeyHashAlgo::result_type
DataStoreRecordKeyHashAlgo::operator()(const TYPE& type) const
{
return type.d_sequenceNum +
static_cast<bsls::Types::Uint64>(type.d_primaryLeaseId) << 32;
static_cast<bsls::Types::Uint64>(type.d_primaryLeaseId)
<< 32;
}

// -----------------------------
Expand Down

0 comments on commit 85a7ea6

Please sign in to comment.