summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-06-07 12:47:34 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-06-07 12:47:34 +0200 |
commit | 9b55ecea81edbc12196a5818077fd38421f8f1a8 (patch) | |
tree | c6d590615695cacbb5a2a3f21fe20639292d134e /src/shared/io/sh_database.erl | |
parent | d99f1e8b0efedf1286ab15c656a0ea874823865f (diff) |
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".
Diffstat (limited to 'src/shared/io/sh_database.erl')
-rw-r--r-- | src/shared/io/sh_database.erl | 7 |
1 files changed, 7 insertions, 0 deletions
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). |