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

Function discard

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

Deactivate and discard the buffer without returning its contents.

()

Source from the content-addressed store, hash-verified

81
82/// Deactivate and discard the buffer without returning its contents.
83pub fn discard() {
84 ACTIVE_BUFFER.with(|b| {
85 let _ = b.borrow_mut().take();
86 });
87}
88
89/// Returns `true` if a DDL buffer is currently active on this thread.
90pub fn is_active() -> bool {

Callers 4

discard_clears_bufferFunction · 0.85
handle_rollbackMethod · 0.85

Calls 1

takeMethod · 0.45

Tested by 3

discard_clears_bufferFunction · 0.68