Skip to content

Commit

Permalink
#461: break as soon as we get a non-metadata commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte committed Jul 5, 2018
1 parent e85629b commit dc539ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/dotmesh-server/pkg/main/statemachines.go
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,7 @@ func (f *fsMachine) getLastNonMetadataSnapshot() (*snapshot, error) {
commitType, ok := (*snaps[idx].Metadata)["type"]
if !ok || commitType != "dotmesh.metadata_only" {
latestSnap = &snaps[idx]
break
}
}
return latestSnap, nil
Expand Down

0 comments on commit dc539ea

Please sign in to comment.