diff options
Diffstat (limited to 'hieroglyph/hgallocator-bfit.c')
-rw-r--r-- | hieroglyph/hgallocator-bfit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hieroglyph/hgallocator-bfit.c b/hieroglyph/hgallocator-bfit.c index d7bd5c2..13204bd 100644 --- a/hieroglyph/hgallocator-bfit.c +++ b/hieroglyph/hgallocator-bfit.c @@ -915,7 +915,7 @@ _hg_allocator_bfit_real_save_snapshot(HgMemPool *pool) * right now the snapshot age depends on the order of releasing * a snapshot image. need better to manage the age of snapshot. */ - if (pool->snapshot_list && hg_list_length(pool->snapshot_list) >= 255) { + if (hg_mem_pool_get_n_snapshots(pool) >= 255) { hg_log_warning("Too many snapshot are creating."); return NULL; } |