News for hackers. Stuff that matters.
Re:Show HN: WAL Implementation in Golang by stym06 on Monday July 08, 2024 @04:06PM (#40909059)
Yes there are a lot of bugs since I just wrote this in one sitting today. Will be fixing all of this. For log rotation, I'll sort by the last_modified_at ts and then purge those
Re:Show HN: WAL Implementation in Golang by tjungblut on Monday July 08, 2024 @04:38PM (#40909415)
Your generational approach to segment numbering is fine, if you prepend enough zeros to format the files properly then you're also able to sort them correctly. etcd uses the same trick.