]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds_thrash: Refactor gevent usage + get traceback
authorJohn Spray <john.spray@inktank.com>
Thu, 27 Feb 2014 14:17:54 +0000 (14:17 +0000)
committerJohn Spray <john.spray@inktank.com>
Thu, 27 Feb 2014 18:39:45 +0000 (18:39 +0000)
commit22825c25a5939047134e443f0395cf75894fec16
tree64988116577f996bd0b6b240b4e96d5ec54378a3
parentf12426c3ec687f667eafd96528fa49f95e9028f5
mds_thrash: Refactor gevent usage + get traceback

This simplifies the code to make MdsTrash be a greenlet
(as it logically is) rather than encapsulating one that
gets started in __init__ (spawning threads in constructors
is evil).

With this done, do_thrash is called from _run inside an
exception handler that will give us full tracebacks
if something bad happens.

Signed-off-by: John Spray <john.spray@inktank.com>
teuthology/task/mds_thrash.py