Ticket #6582: mythtv-6582-skip_special_storage_groups_in_status_page.patch
| File mythtv-6582-skip_special_storage_groups_in_status_page.patch, 1.4 KB (added by , 17 years ago) |
|---|
-
programs/mythbackend/backendutil.cpp
old new 20 20 #include "util.h" 21 21 #include "decodeencode.h" 22 22 #include "compat.h" 23 #include "storagegroup.h" 23 24 24 25 static QMap<QString, int> fsID_cache; 25 26 static QMutex cache_lock; … … 72 73 QString driveKey; 73 74 QString localStr = "1"; 74 75 struct statfs statbuf; 76 QString specialGroups = StorageGroup::kSpecialGroups.join("', '"); 77 QString sql = QString("SELECT MIN(id),dirname " 78 "FROM storagegroup " 79 "WHERE hostname = :HOSTNAME " 80 "AND groupname NOT IN ( '%1' ) " 81 "GROUP BY dirname;").arg(specialGroups); 75 82 MSqlQuery query(MSqlQuery::InitCon()); 76 query.prepare("SELECT MIN(id),dirname " 77 "FROM storagegroup " 78 "WHERE hostname = :HOSTNAME " 79 "AND groupname <> :BACKUPGRP " 80 "GROUP BY dirname;"); 83 query.prepare(sql); 81 84 query.bindValue(":HOSTNAME", gContext->GetHostName()); 82 query.bindValue(":BACKUPGRP", "DB Backups");83 85 84 86 if (query.exec() && query.isActive()) 85 87 {
