From 34d0454da8df940884804a82405ae03638816abc Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Sun, 4 Jul 2010 10:51:38 -0400 Subject: talk to main_pid, not update_pid --- src/fabric_rpc.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl index 2baaf49a..e2dc88b9 100644 --- a/src/fabric_rpc.erl +++ b/src/fabric_rpc.erl @@ -198,8 +198,8 @@ group_info(DbName, Group0) -> reset_validation_funs(DbName) -> case couch_db:open(DbName, []) of - {ok, Db} -> - gen_server:cast(Db#db.update_pid, {load_validation_funs, undefined}); + {ok, #db{main_pid = Pid}} -> + gen_server:cast(Pid, {load_validation_funs, undefined}); _ -> ok end. -- cgit v1.2.3