diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-11 18:02:03 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-11 18:02:03 +0200 |
commit | d164046678b5e10e23439a77fde75101a9e498d6 (patch) | |
tree | 5e0fe4b0a1f0a99d4c233a134c49baa993dcff6b /shard/lib/app/identity.ex | |
parent | 28c9cac2e92011e2f7e6f23e93e8a5d9480a0922 (diff) | |
download | shard-d164046678b5e10e23439a77fde75101a9e498d6.tar.gz shard-d164046678b5e10e23439a77fde75101a9e498d6.zip |
Netgroup enforcement for pagestore
Diffstat (limited to 'shard/lib/app/identity.ex')
-rw-r--r-- | shard/lib/app/identity.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shard/lib/app/identity.ex b/shard/lib/app/identity.ex index 390ef6d..06bc225 100644 --- a/shard/lib/app/identity.ex +++ b/shard/lib/app/identity.ex @@ -56,8 +56,10 @@ defmodule SApp.Identity do id = SData.term_hash manifest case Shard.Manager.find_proc id do nil -> - {:ok, pid} = Shard.Manifest.start manifest - pid + case Shard.Manifest.start manifest do + {:ok, pid} -> pid + {:error, :redundant} -> find_proc(pk) + end pid -> pid end end |