Skip to content

Commit 6e293f1

Browse files
committed
Consolidate all server library code into one file and simplify a few things
1 parent c79a6bd commit 6e293f1

11 files changed

+544
-550
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.15.0 (2020-07-31)
4+
5+
* Consolidate all server library code into one file: libkv.l
6+
* Fix loading of module.l
7+
* Simplify storage location and settings for temporary/lock files
8+
* Explicitly make the child exit when it's finished processing
9+
310
## 0.14.2 (2020-07-30)
411

512
* Ensure clients actually exit when a 'CLIENT KILL' command is received

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ Here we'll assume persistence was previously enabled and data has already been w
364364
7. When a `BGSAVE` (non-blocking) command is received, a temporay copy of the AOF is made, the current AOF is wiped, and a background process is forked to save the DB to disk
365365
8. When a `SAVE` (blocking) command is received, the in-memory DB is saved to disk and the AOF is wiped.
366366
9. A backup of the DB file is always made before overwriting the current DB file.
367-
10. To help handle concurrency and persistence, temporary files are named `.kv.db.lock`, `.kv.db.tmp`, `.kv.aof.lock`, and `.kv.aof.tmp`. It's best not to modify or delete those files while the server is running. They can be safely removed while the server is stopped.
367+
10. To help handle concurrency and persistence, temporary files are named `kv.db.lock`, `kv.db.tmp`, `kv.aof.lock`, and `kv.aof.tmp`. It's best not to modify or delete those files while the server is running. They can be safely removed while the server is stopped.
368368

369369
## AOF format
370370

@@ -394,7 +394,7 @@ When replaying the AOF, the server will ensure the hash of command and arguments
394394

395395
## DB format
396396

397-
The DB is stored by default in the `kv.db` file as defined by `*KV_db`. When backed up, it is named `.kv.db.old`.
397+
The DB is stored by default in the `kv.db` file as defined by `*KV_db`. When backed up, the new filename contains the suffix `.old`.
398398

399399
Here are two separate entries in a typical DB:
400400

child.l

-54
This file was deleted.

client.l

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
(" SAVE" "^I^ISAVE")
3636
(" SET key value" "^I^ISET mykey hello") ]
3737

38-
(chdir (car (file)) (load "libkvclient.l" "clihelpers.l"))
38+
(chdir (car (file)) (load "libkvclient.l" "clihelpers.l" "module.l"))
3939

4040
# START
4141
[ifn (argv)

commands.l

-198
This file was deleted.

0 commit comments

Comments
 (0)