Skip to content

Commit b880a1a

Browse files
committed
Improve comment
1 parent 5ac0476 commit b880a1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,11 @@ export async function bundleDb(
755755
if (fs.existsSync(databaseBundlePath)) {
756756
await fs.promises.rm(databaseBundlePath, { force: true });
757757
}
758-
// Copy the base database OIDs file into the database location if it exists
758+
// When overlay is enabled, the base database OIDs file is included at the
759+
// root of the database cluster. However when we bundle a database, we only
760+
// include the per-language database. So, to ensure the base database OIDs
761+
// file is included in the database bundle, we copy it from the cluster into
762+
// the individual database location before bundling.
759763
const baseDatabaseOidsFilePath = getBaseDatabaseOidsFilePath(config);
760764
const additionalFiles: string[] = [];
761765
if (fs.existsSync(baseDatabaseOidsFilePath)) {

0 commit comments

Comments
 (0)