|
@@ -966,9 +966,11 @@ gc_more:
|
|
|
* threshold, we can make them free by checkpoint. Then, we
|
|
* threshold, we can make them free by checkpoint. Then, we
|
|
|
* secure free segments which doesn't need fggc any more.
|
|
* secure free segments which doesn't need fggc any more.
|
|
|
*/
|
|
*/
|
|
|
- ret = write_checkpoint(sbi, &cpc);
|
|
|
|
|
- if (ret)
|
|
|
|
|
- goto stop;
|
|
|
|
|
|
|
+ if (prefree_segments(sbi)) {
|
|
|
|
|
+ ret = write_checkpoint(sbi, &cpc);
|
|
|
|
|
+ if (ret)
|
|
|
|
|
+ goto stop;
|
|
|
|
|
+ }
|
|
|
if (has_not_enough_free_secs(sbi, 0, 0))
|
|
if (has_not_enough_free_secs(sbi, 0, 0))
|
|
|
gc_type = FG_GC;
|
|
gc_type = FG_GC;
|
|
|
}
|
|
}
|