This commit is contained in:
2026-05-14 17:48:42 +06:00
parent adee0bc805
commit dfff1ffd7e
2 changed files with 45 additions and 0 deletions

View File

@@ -1058,6 +1058,11 @@ func (j *JSONLFile) GetEncryptKey() string {
return j.cypherKey
}
// Mutex возвращает RWMutex адаптера файла (тот же замок, что у Read/Write/Update/Delete при options.InTransaction == false).
func (j *JSONLFile) Mutex() *sync.RWMutex {
return &j.mutex
}
// matchesFilter проверяет соответствие записи фильтру
func (j *JSONLFile) matchesFilter(record any, filter any, strictCompare bool) bool {
if filter == nil {