This commit is contained in:
Charles GTE
2026-07-11 11:19:07 +02:00
parent bd6a798861
commit 186ee90941
2 changed files with 0 additions and 7 deletions
@@ -67,7 +67,6 @@ export async function inspectUpload(
try {
entries = await listTarEntries(buffer);
} catch (error) {
// Gzip but not a tar → fall back to raw (unchanged behavior).
log.info(
{ dbms, error: error instanceof Error ? error.message : "unknown" },
"Gzip is not a tar archive, treating as raw dump",
-6
View File
@@ -103,12 +103,6 @@ export function getFileHeadersBasedOnDbms(
return mergeAccept(base, GZIP_ACCEPT);
}
/**
* Returns a matcher for a tar entry name that indicates the archive holds a
* valid backup for the given dbms. For postgres this covers both custom-format
* dumps (`pg_dump -Fc` → *.dump) and directory-format dumps (`pg_dump -Fd` →
* a `toc.dat` plus numbered data files).
*/
export function getArchiveEntryMatcher(dbType: string): RegExp {
switch (dbType) {
case "postgresql":