]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: test_workload_gen: Fixing a memleak.
authorJoao Eduardo Luis <jecluis@gmail.com>
Thu, 29 Mar 2012 14:34:01 +0000 (15:34 +0100)
committerJoao Eduardo Luis <jecluis@gmail.com>
Thu, 29 Mar 2012 14:34:01 +0000 (15:34 +0100)
Apparently, the FileStore does not cleanup after transactions once they
are applied, which may lead to huge memory leaks.

In this commit we simply 'delete m_tx' in the transaction's callback
class.

src/test/test_workload_gen/workload_generator.h

index b45baf9b5bd60078646208b9b65380df262ec1ab..21696e32f347002f8c9119e4efdad1cb0a58fde7 100644 (file)
@@ -137,6 +137,8 @@ public:
       m_state->m_in_flight--;
       m_state->m_nr_runs++;
       m_state->m_cond.Signal();
+
+      delete m_tx;
     }
   };