mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Use inode number and size for more robust entries change tracking
This commit is contained in:
parent
a6335777d9
commit
16cdcf8cf8
3 changed files with 67 additions and 19 deletions
|
|
@ -25,14 +25,14 @@ type DiskCache struct {
|
|||
Path string
|
||||
MaxSize int64
|
||||
|
||||
lock_file *os.File
|
||||
lock_mutex sync.Mutex
|
||||
entries Metadata
|
||||
entry_map map[string]*Entry
|
||||
entries_mod_time time.Time
|
||||
entries_dirty bool
|
||||
get_dir string
|
||||
read_count int
|
||||
lock_file *os.File
|
||||
lock_mutex sync.Mutex
|
||||
entries Metadata
|
||||
entry_map map[string]*Entry
|
||||
entries_last_read_state *file_state
|
||||
entries_dirty bool
|
||||
get_dir string
|
||||
read_count int
|
||||
}
|
||||
|
||||
func NewDiskCache(path string, max_size int64) (dc *DiskCache, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue