summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2013-02-04 11:39:26 +0100
committerJan Lehnardt <jan@apache.org>2013-02-04 11:39:26 +0100
commit8097f988d635f9ed3fa5af3c2aa4a49058f107db (patch)
tree576d12fcb74dbe1748bca3dd0804baefe3907da9
parentfa4101ba09db5e74af206497e927909284d263e9 (diff)
downloadcouchdb-8097f988d635f9ed3fa5af3c2aa4a49058f107db.tar.gz
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.
-rw-r--r--src/couch_mrview/src/couch_mrview_util.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch_mrview/src/couch_mrview_util.erl b/src/couch_mrview/src/couch_mrview_util.erl
index ba4de2d64..8e6e4dc84 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