Add advisory locking for POSIX based systems #123
Labels
C-enhancement
New feature or request
C-reliability
This issue/PR relates to reliability
C-storage
Relating to storage
D-server
Related to the server
required-improvement
This issue or PR addresses an already existing implementation that needs to be revised
tracking-issue
This is a tracking issue (to be used by maintainers only)
The most important file for us during the lifecycle of the database server is the
data.bin
file that holds the serialized equivalent of the data in the in-memory table. Whenever BGSAVE kicks in, it writes to this file and then on the next run, it writes again and this goes on until the daemon is killed. However, we aren't doing something that we're supposed to ➡️ setting a lock on the file.This issue aims to have this implemented for Unix based systems and not Windows systems just yet (this will be achieved in a future PR/commit). We'll be using locking as per the advisory record locking scheme in POSIX.
Tasks:
Related discussions: #14
The text was updated successfully, but these errors were encountered: