-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For mixed-version clusters, as the gm table is created even if CMQ have already been deprecated
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
%% This Source Code Form is subject to the terms of the Mozilla Public | ||
%% License, v. 2.0. If a copy of the MPL was not distributed with this | ||
%% file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
%% | ||
%% Copyright (c) 2007-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved. | ||
%% | ||
|
||
-module(gm). | ||
|
||
%% Deprecated with CMQ. | ||
%% This module stays here for mixed-version compatibility, because of | ||
%% the `gm_group` table. It can be removed once the migration to Khepri | ||
%% is finalised and Mnesia fully removed. | ||
|
||
-export([table_definitions/0]). | ||
|
||
-define(GROUP_TABLE, gm_group). | ||
|
||
-record(gm_group, { name, version, members }). | ||
|
||
-define(TABLE, {?GROUP_TABLE, [{record_name, gm_group}, | ||
{attributes, record_info(fields, gm_group)}]}). | ||
-define(TABLE_MATCH, {match, #gm_group { _ = '_' }}). | ||
|
||
table_definitions() -> | ||
{Name, Attributes} = ?TABLE, | ||
[{Name, [?TABLE_MATCH | Attributes]}]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters