public void Shutdown() { lock (_lock) { if (_shutdowndone == true) { return; } 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(); } _shutdowndone = true; } }
public void Shutdown() { lock (_shutdownlock) { if (_index != null) { log.Debug("Shutting down"); } else { return; } SaveIndex(); SaveLastRecord(); if (_deleted != null) { _deleted.Shutdown(); } if (_index != null) { _index.Shutdown(); } if (_archive != null) { _archive.Shutdown(); } _index = null; _archive = null; _deleted = null; log.Debug("Shutting down log"); LogManager.Shutdown(); } }
/// <summary> /// Shut down the KeyStorage Indexer /// </summary> public void Shutdown() { lock (_shutdownlock) { if (_index != null) { log.Debug("Shutting down"); _savetimer.Enabled = false; SaveIndex(); SaveLastRecord(); if (_deleted != null) { _deleted.Shutdown(); } if (_index != null) { _index.Shutdown(); } if (_archive != null) { _archive.Shutdown(); } _index = null; _archive = null; _deleted = null; } } }
public void Shutdown() { lock (_lock) { InternalSave(); if (_docMode) { _docs.Shutdown(); _deleted.Shutdown(); } } }