Skip to content

Commit

Permalink
fix bug in merge (#3270)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyaug authored Apr 28, 2022
1 parent 4941971 commit 346391d
Show file tree
Hide file tree
Showing 2 changed files with 331 additions and 241 deletions.
2 changes: 1 addition & 1 deletion pkg/graveler/committed/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (c *committedManager) Diff(ctx context.Context, ns graveler.StorageNamespac
func (c *committedManager) Merge(ctx context.Context, ns graveler.StorageNamespace, destination, source, base graveler.MetaRangeID, strategy graveler.MergeStrategy) (graveler.MetaRangeID, error) {
if source == base {
// no changes on source
return "", nil
return "", graveler.ErrNoChanges
}
if destination == base {
// changes introduced only on source
Expand Down
Loading

0 comments on commit 346391d

Please sign in to comment.