From ba83243fd31766a30be5ecd84a010d8ef612b381 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Tue, 5 Aug 2008 16:54:45 +0000 Subject: 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 --- src/couchdb/couch_view.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_view.erl') 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}) -- cgit v1.2.3