journaler: ENOENT is okay on trim

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-05-19 10:11:56 -07:00 committed by Sage Weil
parent ecb7c96167
commit 4d39f1be6f

View File

@ -1001,7 +1001,7 @@ void Journaler::_trim_finish(int r, uint64_t to)
<< ", trimmed/trimming/expire now "
<< to << "/" << trimming_pos << "/" << expire_pos
<< dendl;
assert(r >= 0);
assert(r >= 0 || r == -ENOENT);
assert(to <= trimming_pos);
assert(to > trimmed_pos);