mds: avoid recursion on log trim

This commit is contained in:
Sage Weil 2008-12-24 14:18:59 -08:00
parent 99fc60e82c
commit 3b253bdf9f
2 changed files with 2 additions and 4 deletions

View File

@ -237,9 +237,6 @@ void MDLog::flush()
if (unflushed)
journaler->flush();
unflushed = 0;
// trim
trim();
}
void MDLog::cap()

View File

@ -388,8 +388,9 @@ void MDS::tick()
if (laggy)
return;
// make sure mds log flushes periodically
// make sure mds log flushes, trims periodically
mdlog->flush();
mdlog->trim();
// log
mds_load_t load = balancer->get_load();