def do_compactBuckets( self, args ):
   """
   Compact buckets table
     Usage : compactBuckets
   """
   try:
     acClient = RPCClient( "Accounting/DataStore" )
     retVal = acClient.compactDB()
     if not retVal[ 'OK' ]:
       gLogger.error( "Error: %s" % retVal[ 'Message' ] )
       return
     gLogger.info( "Done" )
   except:
     self.showTraceback()
Exemplo n.º 2
0
 def do_compactBuckets(self, args):
     """
 Compact buckets table
   Usage : compactBuckets
 """
     try:
         acClient = RPCClient("Accounting/DataStore")
         retVal = acClient.compactDB()
         if not retVal['OK']:
             gLogger.error("Error: %s" % retVal['Message'])
             return
         gLogger.info("Done")
     except:
         self.showTraceback()