From 025d358f116a4d29f072854aeb63488b1cd5569a Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 19 Oct 2010 12:05:19 -0400 Subject: fix DB compaction failing to switch over. Reported by rnewson --- apps/couch/src/couch_db_updater.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/couch/src/couch_db_updater.erl b/apps/couch/src/couch_db_updater.erl index eebd32fb..a687440b 100644 --- a/apps/couch/src/couch_db_updater.erl +++ b/apps/couch/src/couch_db_updater.erl @@ -918,5 +918,5 @@ start_copy_compact(#db{name=Name,filepath=Filepath}=Db) -> unlink(Fd), NewDb2 = copy_compact(Db, NewDb, Retry), close_db(NewDb2), - gen_server:cast(Db#db.update_pid, {compact_done, CompactFile}). + gen_server:cast(Db#db.main_pid, {compact_done, CompactFile}). -- cgit v1.2.3