X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fscratch-writer.c;h=4802f4b20363b5f946660e6c920c10631fbb89b8;hb=c489ad9041918ca8c80dadceade988daab1d25f8;hp=8bedef65677d984c67a2391cc9c47fa598d779ba;hpb=f4a8d7e70526f52b3148f386344158f4b6f343ca;p=pspp-builds.git diff --git a/src/data/scratch-writer.c b/src/data/scratch-writer.c index 8bedef65..4802f4b2 100644 --- a/src/data/scratch-writer.c +++ b/src/data/scratch-writer.c @@ -61,7 +61,7 @@ scratch_writer_open (struct file_handle *fh, /* Copy the dictionary and compact if needed. */ scratch_dict = dict_clone (dictionary); - if (dict_needs_compaction (scratch_dict)) + if (dict_compacting_would_shrink (scratch_dict)) { compactor = dict_make_compactor (scratch_dict); dict_compact_values (scratch_dict);