diff options
Diffstat (limited to 'lib/mnesia/src/mnesia_controller.erl')
-rw-r--r-- | lib/mnesia/src/mnesia_controller.erl | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/mnesia/src/mnesia_controller.erl b/lib/mnesia/src/mnesia_controller.erl index 8a02fe0226..1d3bd55b48 100644 --- a/lib/mnesia/src/mnesia_controller.erl +++ b/lib/mnesia/src/mnesia_controller.erl @@ -287,21 +287,9 @@ get_remote_cstructs() -> %% Old function kept for backwards compatibility; converts cstructs before sending. get_cstructs() -> - {cstructs, Cstructs, Running} = Reply = call(get_cstructs), - case is_remote_call() of - {true, Node} -> - {cstructs, normalize_cstructs(Cstructs, Node), Running}; - false -> - Reply - end. - -is_remote_call() -> - case node(group_leader()) of - N when N =/= node() -> - {true, N}; - _ -> - false - end. + {cstructs, Cstructs, Running} = call(get_cstructs), + Node = node(group_leader()), + {cstructs, normalize_cstructs(Cstructs, Node), Running}. normalize_cstructs(Cstructs, Node) -> %% backward-compatibility hack; normalize before returning |