couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [2/2] git commit: Do not log errors on creating new view index.
Date Mon, 04 Feb 2013 10:39:59 GMT
Updated Branches:
  refs/heads/1.3.x 1e291e597 -> 8038d84fe
  refs/heads/master fa4101ba0 -> 8097f988d


Do not log errors on creating new view index.

While view index file may be really missed, it's ok for new views
and this error will be self-healed on next couch_file:open call
so there is no reason to worry user about.

COUCHDB-1666

Patch by Alexander Shorin.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/8038d84f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/8038d84f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/8038d84f

Branch: refs/heads/1.3.x
Commit: 8038d84feb54068c2e6fd466cdf2cb6cd199c0b9
Parents: 1e291e5
Author: Jan Lehnardt <jan@apache.org>
Authored: Mon Feb 4 11:39:26 2013 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Mon Feb 4 11:39:57 2013 +0100

----------------------------------------------------------------------
 src/couch_mrview/src/couch_mrview_util.erl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/8038d84f/src/couch_mrview/src/couch_mrview_util.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview/src/couch_mrview_util.erl b/src/couch_mrview/src/couch_mrview_util.erl
index ba4de2d..8e6e4dc 100644
--- a/src/couch_mrview/src/couch_mrview_util.erl
+++ b/src/couch_mrview/src/couch_mrview_util.erl
@@ -513,7 +513,7 @@ compaction_file(DbName, Sig) ->
 
 
 open_file(FName) ->
-    case couch_file:open(FName) of
+    case couch_file:open(FName, [nologifmissing]) of
         {ok, Fd} -> {ok, Fd};
         {error, enoent} -> couch_file:open(FName, [create]);
         Error -> Error


Mime
View raw message