mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
初始打开时检查更新系统管理存储器中的日志仓件数信息
This commit is contained in:
parent
0ed22fc9a9
commit
3b23c5b962
@ -299,6 +299,15 @@ func (s *LogDataStorage) loadMetaData() {
|
|||||||
idxw := indexword.NewWordIndexStorage(s.StoreName())
|
idxw := indexword.NewWordIndexStorage(s.StoreName())
|
||||||
s.indexedCount = idxw.GetIndexedCount()
|
s.indexedCount = idxw.GetIndexedCount()
|
||||||
s.savedIndexedCount = s.indexedCount
|
s.savedIndexedCount = s.indexedCount
|
||||||
|
|
||||||
|
// 检查更新系统管理存储器中的日志总件数
|
||||||
|
sysmntStore := sysmnt.NewSysmntStorage() // 系统管理存储器
|
||||||
|
if sysmntStore.GetStorageDataCount(s.storeName) != s.currentCount {
|
||||||
|
sysmntStore.SetStorageDataCount(s.storeName, s.currentCount)
|
||||||
|
}
|
||||||
|
if sysmntStore.GetStorageIndexCount(s.storeName) != s.currentCount {
|
||||||
|
sysmntStore.SetStorageIndexCount(s.storeName, s.indexedCount)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *LogDataStorage) saveMetaData() {
|
func (s *LogDataStorage) saveMetaData() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user