couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/2] git commit: updated refs/heads/master to f6b2189
Date Wed, 15 May 2013 10:41:44 GMT
Don't log missing '.compact' file when compacting

Signed-off-by: Robert Newson <rnewson@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 <queezey@me.com>
Authored: Tue May 14 15:19:52 2013 -0700
Committer: Robert Newson <rnewson@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


Mime
View raw message