Skip to content

Commit

Permalink
v2: sync escalation every 30 seconds on pager
Browse files Browse the repository at this point in the history
  • Loading branch information
guycipher committed Nov 12, 2024
1 parent 9da666c commit dbb9b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/pager/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
const PAGE_SIZE = 1024 // Page size
const HEADER_SIZE = 16 // next (overflowed)
const SYNC_TICK_INTERVAL = 1 * time.Second // tick interval for syncing the file
const SYNC_ESCALATION = 1 * time.Minute // if the file is not synced in 1 minute, sync it
const SYNC_ESCALATION = 30 * time.Second // if the file is not synced 30 seconds, sync it
const WRITE_THRESHOLD = 24576 // every 24576 writes, sync the file

// Pager manages pages in a file
Expand Down

0 comments on commit dbb9b0f

Please sign in to comment.