couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [1/2] git commit: Do not log errors on creating new view index.
Date Mon, 04 Feb 2013 10:39:59 GMT
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/8097f988
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/8097f988
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/8097f988

Branch: refs/heads/master
Commit: 8097f988d635f9ed3fa5af3c2aa4a49058f107db
Parents: fa4101b
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:26 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/8097f988/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