gitnexus 1.6.4-rc.69 → 1.6.4-rc.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/api.js +10 -0
- package/package.json +1 -1
package/dist/server/api.js
CHANGED
|
@@ -1505,6 +1505,16 @@ export const createServer = async (port, host = '127.0.0.1') => {
|
|
|
1505
1505
|
undefined, // skipNodeIds
|
|
1506
1506
|
undefined, // context
|
|
1507
1507
|
existingEmbeddings);
|
|
1508
|
+
// Flush WAL so subsequent /api/search requests see the new
|
|
1509
|
+
// embeddings immediately (#1149). In the CLI path closeLbug()
|
|
1510
|
+
// handles this during process exit, but the server keeps the
|
|
1511
|
+
// connection open for other routes -- a CHECKPOINT is enough.
|
|
1512
|
+
try {
|
|
1513
|
+
await executeQuery('CHECKPOINT');
|
|
1514
|
+
}
|
|
1515
|
+
catch {
|
|
1516
|
+
/* best-effort -- older LadybugDB may not support it */
|
|
1517
|
+
}
|
|
1508
1518
|
});
|
|
1509
1519
|
clearTimeout(embedTimeout);
|
|
1510
1520
|
releaseRepoLock(repoLockPath);
|
package/package.json
CHANGED