summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-10-19 12:05:19 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-10-19 12:05:19 -0400
commit025d358f116a4d29f072854aeb63488b1cd5569a (patch)
tree6dd1e309401cbceaece670a538982c6c302d07c8
parenta40afb39dda1e9f603162c228d8f3c3c12f828e0 (diff)
fix DB compaction failing to switch over. Reported by rnewson
-rw-r--r--apps/couch/src/couch_db_updater.erl2
1 files changed, 1 insertions, 1 deletions
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}).