@xuda.io/drive_module 1.1.1495 → 1.1.1496

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.
Files changed (2) hide show
  1. package/index.mjs +6 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2257,6 +2257,12 @@ export const run_drive_pending_ocr = async () => {
2257
2257
  let app_res = await db_module.find_couch_query('xuda_master', app_opt);
2258
2258
 
2259
2259
  for (let app of app_res.docs) {
2260
+ // Region ownership: OCR only the apps this box owns. The user_drive/
2261
+ // workspace_drive docs live in the app's region-pinned project DB (and
2262
+ // datacenter couches route only from master/dev), so without this the
2263
+ // active/standby master pair double-run expensive OCR and race the writes.
2264
+ if (!_common.is_app_owned_by_local_box(app)) continue;
2265
+
2260
2266
  let opt = {
2261
2267
  selector: { docType: 'user_drive', ocr_stat: 1, stat: 3 },
2262
2268
  limit: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1495",
3
+ "version": "1.1.1496",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {