public void Shutdown() { lock (_lock) { InternalSave(); if (_deleted != null) { _deleted.SaveIndex(); _deleted.Shutdown(); _deleted = null; } if (_bitmaps != null) { _bitmaps.Commit(Global.FreeBitmapMemoryOnSave); _bitmaps.Shutdown(); _bitmaps = null; } if (_docMode) { _docs.Shutdown(); } } }
/// <summary> /// 保存索引 /// </summary> public void SaveIndex() { if (_index == null) { return; } lock (_savelock) { log.Debug("saving to disk"); _index.SaveIndex(); _deleted.SaveIndex(); log.Debug("index saved"); } }