diff options
author | Damien F. Katz <damien@apache.org> | 2008-08-05 16:54:45 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-08-05 16:54:45 +0000 |
commit | ba83243fd31766a30be5ecd84a010d8ef612b381 (patch) | |
tree | fb3dbdcc620250ecf9008ecd50dba0fb6bc827f4 /src/couchdb/couch_view.erl | |
parent | 06fe49ed64013eda225593d6423d36129a4c50db (diff) |
Readded file name checks for open and delete, as an attacker could use relative file names to open/delete otherwise inaccessible db files. Also changed view server shutdown when the parent db shutdowns into a non-normal termination, so that the linked supservisor correctly removes the process from its indexes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@682790 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_view.erl')
-rw-r--r-- | src/couchdb/couch_view.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl index a29a809c..3ed51d80 100644 --- a/src/couchdb/couch_view.erl +++ b/src/couchdb/couch_view.erl @@ -426,7 +426,7 @@ get_notify_pids(Wait) -> [Pid | get_notify_pids()]; {'DOWN', _MonitorRef, _Type, _Pid, _Info} -> ?LOG_DEBUG("View monitor received parent db shutdown notification. Shutting down instance.", []), - exit(normal); + exit(db_shutdown); Else -> ?LOG_ERROR("Unexpected message in view updater: ~p", [Else]), exit({error, Else}) |