Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

made allow_data_loss_during_shutdown work in memcached-wrapper

ep-engine's allow_data_loss_during_shutdown feature detects parent's
death. But when run under memcached-wrapper memcached's parent is
shell which pipes memcached's output into tee. So this feature does
not work.

Simplest fix is to exec into memcached.

Change-Id: Ia9c4da9c4fbe43cc78aa0a5d0cda98cef2b3d569
Reviewed-on: http://review.couchbase.org/8086
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
commit 535dadc9ce8400096f2e24f2abfb4a2417d052f5 1 parent ce9a2e8
@alk alk authored alk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  memcached-wrapper.in
View
2  memcached-wrapper.in
@@ -2,4 +2,4 @@
PREFIX="@PREFIX@"
-"$PREFIX/bin/memcached" -u `whoami` "$@" 2>&1 | tee -a "$PREFIX"/../memcached.$BASHPID.log
+exec "$PREFIX/bin/memcached" -u `whoami` "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.