Compact a node-dirty database.