From: Sage Weil Date: Tue, 2 Aug 2011 18:39:35 +0000 (-0700) Subject: mds: detach replay thread X-Git-Tag: v0.33~58 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37dc931d2b715070e9ea806620cea9bdc22e85b3;p=ceph.git mds: detach replay thread Since we don't join it. This fixes a leak of per-thread state.. namely, an ~8MB chunk of virtual memory (and a handful of real pages). Signed-off-by: Sage Weil --- diff --git a/src/mds/MDLog.cc b/src/mds/MDLog.cc index c317c06da1ea..d553acc94198 100644 --- a/src/mds/MDLog.cc +++ b/src/mds/MDLog.cc @@ -445,6 +445,7 @@ void MDLog::replay(Context *c) already_replayed = true; replay_thread.create(); + replay_thread.detach(); } class C_MDL_Replay : public Context {