From 9b55ecea81edbc12196a5818077fd38421f8f1a8 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Thu, 7 Jun 2018 12:47:34 +0200 Subject: Now it seems to work perfectly. Getting both nodes to start made some unexpected issues about the hostnames appear, despite both using either "-name" or "-sname". --- src/shared/io/sh_database.erl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/shared/io/sh_database.erl') diff --git a/src/shared/io/sh_database.erl b/src/shared/io/sh_database.erl index 8b52f9e..233e37d 100644 --- a/src/shared/io/sh_database.erl +++ b/src/shared/io/sh_database.erl @@ -19,8 +19,15 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +-spec get_db_node () -> node(). get_db_node () -> list_to_atom("db_node@" ++ net_adm:localhost()). +-spec do_remote_operation (atom(), list(any())) -> + ( + {'badrpc', any()} + | {'aborted', any()} + | {'atomic', ({'ok', any()} | 'ok' | 'not_found')} + ). do_remote_operation (Op, Params) -> rpc:call(get_db_node(), db_access, Op, Params). -- cgit v1.2.3-70-g09d2