~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to swift/account/auditor.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, James Page, Chuck Short
  • Date: 2013-08-13 10:37:13 UTC
  • mfrom: (1.2.21)
  • Revision ID: package-import@ubuntu.com-20130813103713-1ctbx4zifyljs2aq
Tags: 1.9.1-0ubuntu1
[ James Page ]
* d/control: Update VCS fields for new branch locations.

[ Chuck Short ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
import os
17
17
import time
 
18
from gettext import gettext as _
18
19
from random import random
19
20
 
20
21
import swift.common.db
49
50
 
50
51
    def _one_audit_pass(self, reported):
51
52
        all_locs = audit_location_generator(self.devices,
52
 
                                            account_server.DATADIR,
 
53
                                            account_server.DATADIR, '.db',
53
54
                                            mount_check=self.mount_check,
54
55
                                            logger=self.logger)
55
56
        for path, device, partition in all_locs:
113
114
        """
114
115
        start_time = time.time()
115
116
        try:
116
 
            if not path.endswith('.db'):
117
 
                return
118
117
            broker = AccountBroker(path)
119
118
            if not broker.is_deleted():
120
119
                broker.get_info()