]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: detach replay thread
authorSage Weil <sage@newdream.net>
Tue, 2 Aug 2011 18:39:35 +0000 (11:39 -0700)
committerSage Weil <sage@newdream.net>
Tue, 2 Aug 2011 18:40:16 +0000 (11:40 -0700)
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 <sage@newdream.net>
src/mds/MDLog.cc

index c317c06da1ea0f54703bc9158c3657925bbd95c8..d553acc94198f653ef4d233cd2e5a6689a87cf7e 100644 (file)
@@ -445,6 +445,7 @@ void MDLog::replay(Context *c)
   already_replayed = true;
 
   replay_thread.create();
+  replay_thread.detach();
 }
 
 class C_MDL_Replay : public Context {