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

Function freeFakeClient

src/aof.cpp:826–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826void freeFakeClient(struct client *c) {
827 sdsfree(c->querybuf);
828 listRelease(c->reply);
829 listRelease(c->watched_keys);
830 freeClientMultiState(c);
831 freeClientOriginalArgv(c);
832 fastlock_unlock(&c->lock);
833 fastlock_free(&c->lock);
834 delete c;
835}
836
837/* Replay the append log file. On success C_OK is returned. On non fatal
838 * error (the append only file is zero-length) C_ERR is returned. On

Callers 2

keysCommandCoreFunction · 0.85
loadAppendOnlyFileFunction · 0.85

Calls 6

sdsfreeFunction · 0.85
listReleaseFunction · 0.85
freeClientMultiStateFunction · 0.85
freeClientOriginalArgvFunction · 0.85
fastlock_unlockFunction · 0.85
fastlock_freeFunction · 0.85

Tested by

no test coverage detected