* if the target backup table already exists
(for instance the original table got some new data
for previous periods)
it is not possible to exchange partitions with that table
anymore so the normal backup method is used for the table
as a fallback.
Change-Id: I2336a5867fc4445feb29962b0981d1d79fa88140
* start_time cannot be used there as a constant because
cdr_* extended tables have a different name for the column
Change-Id: I79b030e6a8b6d6e855f9ed7c0a1509685ab34e7f
- Bump debhelper compatibility version 10.
- Switch from Priority extra to optional.
- Update debian/.gitignore file.
Change-Id: I577594a95567de72002c72cd8c8e95ff135f0451
This module has been split from perl core in recent releases, use the
CPAN version always to be future-proof.
Change-Id: I93f74948570f7cdf38507472c529f963530ac5cf
* the extra partition that are below checked range
of ones to backup is also dropped now
* adjusted debug messages
Change-Id: I1e8cb156951313651f11b94e6ff605e2a579cdf2
* logic moved to NGCP::Cleanup
* refactored NGCP::Cleanup to support OO, logging
* implemented table partitioning support
* optimized speed for key columns containing timestamps
Change-Id: I8eaec0f42d15de30daf65753e5f04bc9b104c9cc
- read from acc-cleanup.conf now, not config.yml.
- be aware that there are customers that need to update
their customtts accordingly. unfortunately it are the large
customers, that most notably would benefit of that
maintenance mode.
- note: acc-cleanup.conf is a batch file, not a settings
file. however, due to the new "maintenance" parameter,
acc-cleanup.pl is now doing deferred execution of commands.
so it does not matter where in acc-cleanup.conf customtt a
customer is placing "maintenance = [% general.maintenance %]"
- doe not die on maintenance mode any more, but finishes silently
(no-op).
- fix to allow modifying the vars table w/o any restrictions,
as before.
Change-Id: I6100c7087b8422de2d20d4b227884dee2fd8712b
We can drop the following check here:
> if [ ${#INDEX[@]} -gt $KEEP ]; then
because it is already covered by the following:
> for index in ${INDEX[*]:$KEEP} ; do
which mean index will not have first '$KEEP' lines.
Change-Id: I018631cc6b2f340d798216836ff0f535a1f7cf70
- Use canonical homepage URL.
- Fix Vcs-* field URLs.
- Bump debhelper compatibility to 9.
- Bump Standards-Version to 3.9.8.
- Bump source format to 3.0 (native).
- Switch to dh debian/rules.
- Make the package short descriptions unique.
- Fix typo for MySQL in package long descriptions.
- Update copyright years.
- Remove unnecessary prosting maintscript (the directory is shipped).
Change-Id: If5820bb643867ff4a0bf51719c741ec643d38949
to support backing up
+accounting.cdr_cash_balance_data
+accounting.cdr_time_balance_data
+accounting.cdr_relation_data
+accounting.cdr_tag_data
(+accounting.events_relation_data ...)
Change-Id: Icef6e9040881ee1efc6fffb65cd679d2ac9e0d91
We should abort the script in case of missed NGCP config,
otherwise we can accidentally remove customer's index 'logstash'
Also redirects all errors to STDERR.
Change-Id: I45287440f03e5e5aa7310b149b2a6bfe70307c52