Author: eallen
Date: 2010-07-08 08:32:04 -0400 (Thu, 08 Jul 2010)
New Revision: 4088
Modified:
mgmt/newdata/mint/python/mint/expire.py
mgmt/newdata/mint/python/mint/vacuum.py
Log:
Temp fix for transient schemas (not stored in database)
Modified: mgmt/newdata/mint/python/mint/expire.py
===================================================================
--- mgmt/newdata/mint/python/mint/expire.py 2010-07-08 12:30:48 UTC (rev 4087)
+++ mgmt/newdata/mint/python/mint/expire.py 2010-07-08 12:32:04 UTC (rev 4088)
@@ -41,8 +41,9 @@
count = 0
for pkg in self.model._packages:
- for cls in pkg._classes:
- count += self.delete_samples(cursor, cls, seconds)
+ if pkg.sql_schema.type != "transient":
+ for cls in pkg._classes:
+ count += self.delete_samples(cursor, cls, seconds)
log.info("Expired %i samples", count)
Modified: mgmt/newdata/mint/python/mint/vacuum.py
===================================================================
--- mgmt/newdata/mint/python/mint/vacuum.py 2010-07-08 12:30:48 UTC (rev 4087)
+++ mgmt/newdata/mint/python/mint/vacuum.py 2010-07-08 12:32:04 UTC (rev 4088)
@@ -24,8 +24,9 @@
conn.set_isolation_level(0)
for pkg in self.model._packages:
- for cls in pkg._classes:
- self.vacuum(cursor, cls)
+ if pkg.sql_schema.type != "transient":
+ for cls in pkg._classes:
+ self.vacuum(cursor, cls)
conn.set_isolation_level(level)