Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,8 @@ public BranchManager branchManager() {
snapshotManager(),
tagManager(),
schemaManager(),
new BranchMergeHandler(this::switchToBranch));
new BranchMergeHandler(this::switchToBranch),
() -> catalogEnvironment.snapshotCommit(snapshotManager(), coreOptions(), null));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,13 @@ public SchemaModification schemaModification() {
return SchemaModification.create(catalog, identifier);
}

/** Create a publisher owning the writer's lock and its catalog resources. */
/**
* Create a publisher owning the writer's lock and its catalog resources. Callers that only need
* the lock pass a null commit user; locks that require a writer identity, such as REST commit
* leases, reject it.
*/
public SnapshotCommit snapshotCommit(
SnapshotManager snapshotManager, CoreOptions options, String commitUser) {
SnapshotManager snapshotManager, CoreOptions options, @Nullable String commitUser) {
Identifier lockIdentifier =
identifier == null
? null
Expand Down
Loading
Loading