remove separate key for L/S count

This commit is contained in:
Lawrence, Rendall
2024-06-27 20:27:20 +03:00
parent 32193ee329
commit f010cabdb1
4 changed files with 74 additions and 70 deletions

View File

@@ -35,8 +35,7 @@ Fields:
* `<PEERID>` - 20 bytes of peer ID
* `<IPADDRESS>` - 16 bytes of BE-encoded IP address (real IPv6 or IPv4-mapped IPv6 address)
* `<PORT>` - 2 bytes of BE-encoded port
2. Key `<PREFIX>_<INFOHASH>_`, value - BE-encoded unsigned 32-bit integer.
`<PREFIX>` is `LC`, `SC`, `DC` string for leechers, seeders or downloaded count of specified `<INFOHASH>` (20 or 32 bytes).
2. Key `DC_<INFOHASH>_` - downloaded count of specified `<INFOHASH>` (20 or 32 bytes), value - BE-encoded unsigned 32-bit integer.
Write speed may be increased with `no_sync_meta` and `async_write` configuration options,
but the risk of DB corruption is also increase.