Files
scylladb/raft/internal.hh
Benny Halevy adfb79ba3e raft, idl: restore internal::tagged_uint64 type
Change f5f566bdd8 introduced
tagged_integer and replaced raft::internal::tagged_uint64
with utils::tagged_integer.

However, the idl type for raft::internal::tagged_uint64
was not marked as final, but utils::tagged_integer is, breaking
the on-the-wire compatibility.

This change defines the different raft tagged_uint64
types in idl/raft_storage.idl.hh as non-final
to restore the way they were serialized prior to
f5f566bdd8

Fixes #13752

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
2023-05-09 12:38:20 +03:00

26 lines
489 B
C++

/*
* Copyright (C) 2020-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <ostream>
#include <functional>
#include "utils/UUID.hh"
#include "utils/tagged_integer.hh"
namespace raft {
namespace internal {
template<typename Tag>
using tagged_id = utils::tagged_uuid<Tag>;
template<typename Tag>
using tagged_uint64 = utils::tagged_tagged_integer<struct non_final, Tag, uint64_t>;
} // end of namespace internal
} // end of namespace raft