Skip to content

Commit aab9e75

Browse files
abderrahimbarthalion
authored andcommitted
flat-manager-client: check for all missing objects
Previously, the code assumed that if a metadata object is available on the server all file objects it points to are also available, which is a reasonable assumption in general. However, a misbehaving prune operation can leave a repository in such a state with missing file objects. This change allows the repository to recover by uploading such missing files if they are needed for the currently uploaded commits.
1 parent 13841c5 commit aab9e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flat-manager-client

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ async def push_command(session, args):
719719

720720
print("Remote missing %d of those" % (len(missing_metadata_objects)))
721721

722-
file_objects = local_needed_files(local_repo, missing_metadata_objects)
722+
file_objects = local_needed_files(local_repo, metadata_objects)
723723
print("Has %d file objects for those" % (len(file_objects)))
724724

725725
missing_file_objects = await missing_objects(session, args.build_url, token, list(file_objects))

0 commit comments

Comments
 (0)