@@ -94,17 +94,9 @@ class ICEBERG_EXPORT Transaction : public std::enable_shared_from_this<Transacti
9494 // / changes.
9595 Result<std::shared_ptr<UpdateLocation>> NewUpdateLocation ();
9696
97- // / \brief Create a new SetSnapshot to set the current snapshot or rollback to a
98- // / previous snapshot and commit the changes.
99- Result<std::shared_ptr<SetSnapshot>> NewSetSnapshot ();
100-
10197 // / \brief Create a new FastAppend to append data files and commit the changes.
10298 Result<std::shared_ptr<FastAppend>> NewFastAppend ();
10399
104- // / \brief Create a new UpdateSnapshotReference to update snapshot references (branches
105- // / and tags) and commit the changes.
106- Result<std::shared_ptr<UpdateSnapshotReference>> NewUpdateSnapshotReference ();
107-
108100 // / \brief Create a new SnapshotManager to manage snapshots.
109101 Result<std::shared_ptr<SnapshotManager>> NewSnapshotManager ();
110102
@@ -114,6 +106,14 @@ class ICEBERG_EXPORT Transaction : public std::enable_shared_from_this<Transacti
114106
115107 Status AddUpdate (const std::shared_ptr<PendingUpdate>& update);
116108
109+ // / \brief Create a new SetSnapshot to set the current snapshot or rollback to a
110+ // / previous snapshot and commit the changes.
111+ Result<std::shared_ptr<SetSnapshot>> NewSetSnapshot ();
112+
113+ // / \brief Create a new UpdateSnapshotReference to update snapshot references (branches
114+ // / and tags) and commit the changes.
115+ Result<std::shared_ptr<UpdateSnapshotReference>> NewUpdateSnapshotReference ();
116+
117117 // / \brief Apply the pending changes to current table.
118118 Status Apply (PendingUpdate& updates);
119119
@@ -132,6 +132,7 @@ class ICEBERG_EXPORT Transaction : public std::enable_shared_from_this<Transacti
132132
133133 private:
134134 friend class PendingUpdate ;
135+ friend class SnapshotManager ;
135136
136137 // The table that this transaction will update.
137138 std::shared_ptr<Table> table_;
0 commit comments