MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / drain

Method drain

src/secrets/src/cache.rs:385–391  ·  view source on GitHub ↗

Drain all of the actions for introspection.

(&self)

Source from the content-addressed store, hash-verified

383
384 /// Drain all of the actions for introspection.
385 pub fn drain(&self) -> Vec<CatalogItemId> {
386 self.reads
387 .lock()
388 .expect("TracingSecretsController panicked!")
389 .drain(..)
390 .collect()
391 }
392
393 /// Record that an action has occurred.
394 fn record(&self, id: CatalogItemId) {

Callers 15

decode_and_mfpFunction · 0.45
arityMethod · 0.45
make_nonrecursiveMethod · 0.45
remove_undemandedMethod · 0.45
flat_map_modifyFunction · 0.45
convertMethod · 0.45
fuse_window_functionsFunction · 0.45
applied_toMethod · 0.45

Calls 3

expectMethod · 0.80
lockMethod · 0.80
collectMethod · 0.45

Tested by 4

test_read_from_cacheFunction · 0.36
test_disabling_cacheFunction · 0.36
test_invalidateFunction · 0.36