MCPcopy Create free account
hub / github.com/documentdb/documentdb / PopAllActiveSnapshots

Function PopAllActiveSnapshots

pg_documentdb/src/utils/index_utils.c:40–53  ·  view source on GitHub ↗

* PopAllActiveSnapshots pops all currently active snapshots, which is typically * necessary before committing. */

Source from the content-addressed store, hash-verified

38 * necessary before committing.
39 */
40void
41PopAllActiveSnapshots(void)
42{
43 while (ActiveSnapshotSet())
44 {
45 PopActiveSnapshot();
46 }
47
48 /* If there was a snapshot on the portal, clear it */
49 if (ActivePortal != NULL)
50 {
51 ActivePortal->portalSnapshot = NULL;
52 }
53}

Calls

no outgoing calls

Tested by

no test coverage detected