Пример #1
0
        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();
                }
            }
        }
Пример #2
0
 /// <summary>
 /// 保存索引
 /// </summary>
 public void SaveIndex()
 {
     if (_index == null)
     {
         return;
     }
     lock (_savelock)
     {
         log.Debug("saving to disk");
         _index.SaveIndex();
         _deleted.SaveIndex();
         log.Debug("index saved");
     }
 }