cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhaisaab <>
Subject [GitHub] cloudstack pull request: Quota master
Date Tue, 01 Sep 2015 04:59:32 GMT
Github user bhaisaab commented on a diff in the pull request:
    --- Diff: engine/schema/src/com/cloud/usage/dao/ ---
    @@ -469,4 +478,25 @@ public void removeOldUsageRecords(int days) {
    +    @SuppressWarnings("deprecation")
    +    public Pair<List<? extends UsageVO>, Integer> getUsageRecordsPendingQuotaAggregation(final
long accountId, final long domainId) {
    +        final short opendb = TransactionLegacy.currentTxn().getDatabaseId();
    --- End diff --
    @jburwell the dao uses connection multiplexing; so if we don't switch back to the previous
DB several queries will fail as they will be execute on USAGE_DB instead of CLOUD_DB. This
pattern is widely used across the codebase.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message