commit | 6a5e4860e0b634d8196a88b8f7f6116562f00702 | [log] [tgz] |
---|---|---|
author | Paul J. Davis <paul.joseph.davis@gmail.com> | Sun Aug 17 15:12:02 2014 -0500 |
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | Sun Aug 17 15:14:41 2014 -0500 |
tree | ed932354d1318789ec51d66f7ba8ff3315867edf | |
parent | f99e082d89772357f5f618cf21dc939f10180278 [diff] |
Periodically check if an index should close We need to periodically check if our index file still exists on disk because index cleanups don't notify the couch_index process when a file has been deleted. If we don't check for this condition then the index can remain open indefinitely wasting disk space. We make sure that we're idle before closing by looking to see if we have any clients waiting for an update.