You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2013/05/15 12:41:44 UTC
[2/2] git commit: updated refs/heads/master to f6b2189
Don't log missing '.compact' file when compacting
Signed-off-by: Robert Newson <rn...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f6b21891
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f6b21891
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f6b21891
Branch: refs/heads/master
Commit: f6b21891a2a027eaeef571b05ac162dfce957274
Parents: 3a678ce
Author: Christopher Bonhage <qu...@me.com>
Authored: Tue May 14 15:19:52 2013 -0700
Committer: Robert Newson <rn...@apache.org>
Committed: Wed May 15 11:41:11 2013 +0100
----------------------------------------------------------------------
src/couchdb/couch_db_updater.erl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/f6b21891/src/couchdb/couch_db_updater.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl
index 0ce3048..af7578e 100644
--- a/src/couchdb/couch_db_updater.erl
+++ b/src/couchdb/couch_db_updater.erl
@@ -970,7 +970,7 @@ copy_compact(Db, NewDb0, Retry) ->
start_copy_compact(#db{name=Name,filepath=Filepath,header=#db_header{purge_seq=PurgeSeq}}=Db) ->
CompactFile = Filepath ++ ".compact",
?LOG_DEBUG("Compaction process spawned for db \"~s\"", [Name]),
- case couch_file:open(CompactFile) of
+ case couch_file:open(CompactFile, [nologifmissing]) of
{ok, Fd} ->
Retry = true,
case couch_file:read_header(Fd) of