change the logic for a capture buffer flush to disk when a locate is occuring