diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-04 21:29:39 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-05 15:47:11 -0500 |
commit | 191ed671d297c587f8e3eea638a8d0a54494b845 (patch) | |
tree | 9cc2d8eb9f9ccc5bb1aa1294b9b2bcc54a3cabcf | |
parent | bee59d635b820a548b0c56ee2e342424eadc22dd (diff) |
38278: Removing duplicate CDR entries prior to billing [FOR UPDATE fix, v4+]
-rw-r--r-- | FS/bin/freeside-cdrrewrited | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/FS/bin/freeside-cdrrewrited b/FS/bin/freeside-cdrrewrited index bb16059..d117f56 100644 --- a/FS/bin/freeside-cdrrewrited +++ b/FS/bin/freeside-cdrrewrited @@ -63,12 +63,11 @@ while (1) { foreach my $cdr ( qsearch( { 'table' => 'cdr', - 'extra_sql' => 'FOR UPDATE', #XXX overwritten by opt below...would fixing this break anything? 'hashref' => {}, 'extra_sql' => 'WHERE freesidestatus IS NULL '. ' AND freesiderewritestatus IS NULL '. $extra_sql. - ' LIMIT 1024', #arbitrary, but don't eat too much memory + ' LIMIT 1024 FOR UPDATE', #arbitrary, but don't eat too much memory } ) ) { |