MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / replicationBuffer

Method replicationBuffer

src/replication.cpp:1009–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007
1008public:
1009 replicationBuffer() {
1010 reply = (clientReplyBlock*)zmalloc(sizeof(clientReplyBlock) + (PROTO_REPLY_CHUNK_BYTES*2));
1011 reply->size = zmalloc_usable_size(reply) - sizeof(clientReplyBlock);
1012 reply->used = 0;
1013 }
1014
1015 ~replicationBuffer() {
1016 zfree(reply);

Callers

nothing calls this directly

Calls 2

zmallocFunction · 0.85
zmalloc_usable_sizeFunction · 0.85

Tested by

no test coverage detected