MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / take

Function take

nodedb/src/control/server/pgwire/session/ddl_buffer.rs:78–80  ·  view source on GitHub ↗

Take the accumulated buffer contents and deactivate. Returns `None` if the buffer was never activated.

()

Source from the content-addressed store, hash-verified

76/// Take the accumulated buffer contents and deactivate. Returns
77/// `None` if the buffer was never activated.
78pub fn take() -> Option<DdlBuffer> {
79 ACTIVE_BUFFER.with(|b| b.borrow_mut().take())
80}
81
82/// Deactivate and discard the buffer without returning its contents.
83pub fn discard() {

Callers 15

split_nodeFunction · 0.85
take_readyMethod · 0.85
submitMethod · 0.85
drain_freshMethod · 0.85
drain_tombstonesMethod · 0.85
search_layerFunction · 0.85
drainMethod · 0.85
split_top_level_commasFunction · 0.85
drain_outboundMethod · 0.85
drainMethod · 0.85
take_all_pendingMethod · 0.85

Calls 1

takeMethod · 0.45

Tested by 1

active_buffer_capturesFunction · 0.68