Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

createFileRecord is not returning existing record #71

Open
cgendreau opened this issue Mar 1, 2023 · 1 comment
Open

createFileRecord is not returning existing record #71

cgendreau opened this issue Mar 1, 2023 · 1 comment

Comments

@cgendreau
Copy link
Contributor

/harvestor/walker/file.go

createFileRecord includes a check to make sure the record doesn't exist. But, when it exists it return the temporary object created instead of the one from the database.

When processSidecarFromWalker resumes, it gets the temporary object and will break the FK when walker/sidecar will try to create the database entry for sidecar.

@cgendreau
Copy link
Contributor Author

9a64b26

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant