Commits

Romain Slootmaekers committed e1414e0 Draft Merge

merged

  • Participants
  • Parent commits 2101fd9, c041dac
  • Branches 1.5

Comments (0)

Files changed (1)

extension/server/ArakoonManagement.py

         def helper(config):
             home = config['home']
             log_dir = config['log_dir']
+            real_tlog_dir = config.get('tlog_dir', home)
 
             files_in_dir = lambda dir_: itertools.ifilter(os.path.isfile,
                 (os.path.join(dir_, name) for name in os.listdir(dir_)))
                 for file_ in files)
 
             return {
-                'tlog': sum_size(tlog_files(files_in_dir(home))),
+                'tlog': sum_size(tlog_files(files_in_dir(real_tlog_dir))),
                 'db': sum_size(db_files(files_in_dir(home))),
                 'log': sum_size(log_files(files_in_dir(log_dir)))
             }