Skip to content

Commit 4fd625b

Browse files
authored
Merge pull request #7389 from Countly/Cookiezaurs-patch-5
Do not recreate old unused index on app_users_merges collection
2 parents 831ce78 + 155df32 commit 4fd625b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

api/parts/mgmt/apps.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -857,12 +857,7 @@ function deleteAllAppData(appId, fromAppDelete, params, app) {
857857
common.db.collection('metric_changes' + appId).ensureIndex({ts: 1, "cc.o": 1}, { background: true }, function() {});
858858
common.db.collection('metric_changes' + appId).ensureIndex({uid: 1}, { background: true }, function() {});
859859
});
860-
common.db.collection('app_user_merges' + appId).drop(function() {
861-
common.db.collection('app_user_merges' + appId).ensureIndex({cd: 1}, {
862-
expireAfterSeconds: 60 * 60 * 3,
863-
background: true
864-
}, function() {});
865-
});
860+
common.db.collection('app_user_merges' + appId).drop(function() {});
866861
if (params.qstring.args.period === "reset") {
867862
plugins.dispatch("/i/apps/reset", {
868863
params: params,

0 commit comments

Comments
 (0)