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

Method trimState

src/SnapshotPayloadParseState.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228size_t SnapshotPayloadParseState::depth() const { return stackParse.size(); }
229
230void SnapshotPayloadParseState::trimState() {
231 while (!stackParse.empty() && (stackParse.back().arraycur == stackParse.back().arraylen))
232 stackParse.pop_back();
233
234 if (stackParse.empty()) {
235 flushQueuedKeys();
236 while (*insertsInFlight > 0) {
237 // TODO: ProcessEventsWhileBlocked
238 aeReleaseLock();
239 aeAcquireLock();
240 }
241 }
242}
243
244void SnapshotPayloadParseState::pushArray(long long size) {
245 if (stackParse.empty())

Callers 1

readSnapshotBulkPayloadFunction · 0.80

Calls 3

aeReleaseLockFunction · 0.85
aeAcquireLockFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected