Skip to content

Commit

Permalink
save isIncremented (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
debebantur committed May 7, 2024
1 parent ab3db9a commit 497759e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/databases/greenplum/ao_storage_uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (u *AoStorageUploader) addFile(cfi *internal.ComposeFileInfo, aoMeta AoRelF
tracelog.DebugLogger.Printf(
"%s: ModCount %d, EOF %d matches the remote file %s, will skip this file",
cfi.Header.Name, remoteFile.ModCount, remoteFile.EOF, remoteFile.StoragePath)
return u.skipAoUpload(cfi, aoMeta, remoteFile.StoragePath, remoteFile.InitialUploadTS)
return u.skipAoUpload(cfi, aoMeta, remoteFile.StoragePath, remoteFile.InitialUploadTS, remoteFile.IsIncremented)
}

func (u *AoStorageUploader) addAoFileMetadata(
Expand All @@ -137,8 +137,8 @@ func (u *AoStorageUploader) GetFiles() *AOFilesMetadataDTO {
}

func (u *AoStorageUploader) skipAoUpload(cfi *internal.ComposeFileInfo, aoMeta AoRelFileMetadata, storageKey string,
initialUploadTS time.Time) error {
u.addAoFileMetadata(cfi, storageKey, aoMeta, true, false, initialUploadTS)
initialUploadTS time.Time, isIncremented bool) error {
u.addAoFileMetadata(cfi, storageKey, aoMeta, true, isIncremented, initialUploadTS)
u.bundleFiles.AddSkippedFile(cfi.Header, cfi.FileInfo)
tracelog.DebugLogger.Printf("Skipping %s AO relfile (already exists in storage as %s)", cfi.Path, storageKey)
return nil
Expand Down

0 comments on commit 497759e

Please sign in to comment.