summaryrefslogtreecommitdiff
path: root/proto_bin.c
Commit message (Collapse)AuthorAgeFilesLines
* meta: N flag changes append/prepend. ms s flag.dormando2023-03-111-2/+2
| | | | | | | | | Sending 's' flag to metaset now returns the size of the item stored. Useful if you want to know how large an append/prepended item now is. If the 'N' flag is supplied while in append/prepend mode, allows autovivifying (with exptime supplied from N) for append/prepend style keys that don't need headers created first.
* core: fix another dtrace compilation issue1.6.19dormando2023-03-081-1/+0
|
* core: remove *conn object from cache commandsdormando2023-01-111-8/+14
| | | | | | | | | We want to start using cache commands in contexts without a client connection, but the client object has always been passed to all functions. In most cases we only need the worker thread (LIBEVENT_THREAD *t), so this change adjusts the arguments passed in.
* Extend extbuf in try_read_command_binary functionTomas Korbar2022-02-091-1/+4
| | | | | | Extbuf needs to have 48 bytes because it is used for protocol_binary_request_incr union. Unions member message is alligned to 48 bytes.
* Fix time-of-check time-of-use bugskokke2021-11-231-3/+2
| | | Fixing 'bugs' of the pattern: 'assert(ptr != 0)' after 'ptr' was already dereferenced
* Implement LOG_CONNEVENTS watcher flag for connection state transitionsKevin Lin2021-08-071-0/+1
| | | | | | | | Add support for `watch connevents` to report opened (`conn_new`) and closed (`conn_close`) client connections. Event log lines indicate the connection's remote IP, remote port, and transport type. `conn_close` events additionally supply a reason for the closing the connection.
* core: move more storage functions to storage.cdormando2020-10-301-1/+2
| | | | | | | extstore.h is now only used from storage.c. starting a path towards getting the storage interface to be more generalized. should be no functional changes.
* main: split binary protocol into proto_bin.cdormando2020-07-021-0/+1326
also some missed text bits.