mirror of
https://github.com/ceph/ceph
synced 2025-02-14 14:28:36 +00:00
mds: avoid recursion on log trim
This commit is contained in:
parent
99fc60e82c
commit
3b253bdf9f
@ -237,9 +237,6 @@ void MDLog::flush()
|
||||
if (unflushed)
|
||||
journaler->flush();
|
||||
unflushed = 0;
|
||||
|
||||
// trim
|
||||
trim();
|
||||
}
|
||||
|
||||
void MDLog::cap()
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user