mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
5b6e229c21
[CE/SP] Hotfix 5.0.2 / 4.2.4 GitOrigin-RevId: 2f9ce416b95a0124edb1a9cf35c2dfa94f6f4a19
32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
diff --git a/services/project-history/scripts/force_resync.js b/services/project-history/scripts/force_resync.js
|
|
index 5e77b35826..13e7d3cd5c 100755
|
|
--- services/project-history/scripts/force_resync.js
|
|
+++ services/project-history/scripts/force_resync.js
|
|
@@ -77,7 +77,7 @@ function checkAndClear(project, callback) {
|
|
function startResync(cb) {
|
|
if (force) {
|
|
console.log('2. starting resync for', projectId)
|
|
- SyncManager.startResync(projectId, err => {
|
|
+ SyncManager.startHardResync(projectId, err => {
|
|
if (err) {
|
|
console.log('ERR', JSON.stringify(err.message))
|
|
return cb(err)
|
|
@@ -195,17 +195,8 @@ function checkAndClear(project, callback) {
|
|
)
|
|
}
|
|
|
|
-// find all the broken projects from the failure records
|
|
-const errorsToResync = [
|
|
- 'Error: history store a non-success status code: 422',
|
|
- 'OError: history store a non-success status code: 422',
|
|
- 'OpsOutOfOrderError: project structure version out of order',
|
|
-]
|
|
-
|
|
async function main() {
|
|
- const results = await db.projectHistoryFailures
|
|
- .find({ error: { $in: errorsToResync } })
|
|
- .toArray()
|
|
+ const results = await db.projectHistoryFailures.find().toArray()
|
|
|
|
console.log('number of queues without history store 442 =', results.length)
|
|
// now check if the project is truly deleted in mongo
|