correct 2 gcc warnings.  fix bug where compaction_grooming_ flag can cause infinite loop