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

Method apply_write

src/adapter/src/session.rs:906–910  ·  view source on GitHub ↗

If the current session is using the Strong Session Serializable isolation level advance the session local timestamp oracle to `write_ts`.

(&mut self, timestamp: Timestamp)

Source from the content-addressed store, hash-verified

904 /// If the current session is using the Strong Session Serializable isolation level advance the
905 /// session local timestamp oracle to `write_ts`.
906 pub fn apply_write(&mut self, timestamp: Timestamp) {
907 if self.vars().transaction_isolation() == &IsolationLevel::StrongSessionSerializable {
908 self.ensure_local_timestamp_oracle().apply_write(timestamp);
909 }
910 }
911
912 /// Returns the [`SessionMetrics`] instance associated with this [`Session`].
913 pub fn metrics(&self) -> &SessionMetrics {

Callers 1

serveFunction · 0.45

Calls 3

transaction_isolationMethod · 0.80
varsMethod · 0.45

Tested by

no test coverage detected