From e1409e0c04dc88294f64c09f917b8c245fb98600 Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Mon, 16 Jun 2008 19:33:08 +0000
Subject: be a bit more verbose about what we are doing on the migration side
 so that people don't think we're hung.

---
 OpenSim/Data/Migration.cs | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'OpenSim')

diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs
index 9447deb..6637e1a 100644
--- a/OpenSim/Data/Migration.cs
+++ b/OpenSim/Data/Migration.cs
@@ -122,6 +122,13 @@ namespace OpenSim.Data
             version = FindVersion(_type);
 
             SortedList<int, string> migrations = GetMigrationsAfter(version);
+            if (migrations.Count < 1)
+                return;
+
+            // to prevent people from killing long migrations.
+            m_log.InfoFormat("[MIGRATIONS] Upgrading {0} to latest revision.", _type);
+            m_log.Info("[MIGRATIONS] NOTE: this may take a while, don't interupt this process!");
+
             DbCommand cmd = _conn.CreateCommand();
             foreach (KeyValuePair<int, string> kvp in migrations) 
             {
-- 
cgit v1.1