additional diag message in nxdbmgr tdata conversion function
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Nov 2017 09:45:02 +0000 (11:45 +0200)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Nov 2017 09:45:02 +0000 (11:45 +0200)
src/server/tools/nxdbmgr/tdata_convert.cpp

index 35f9045..fc144d9 100644 (file)
@@ -81,7 +81,10 @@ static bool ConvertTData(UINT32 id, int *skippedRecords)
    _sntprintf(oldName, 64, _T("tdata_%d"), id);
    _sntprintf(newName, 64, _T("tdata_temp_%d"), id);
    if (!DBRenameTable(g_hCoreDB, oldName, newName))
+   {
+      _tprintf(_T("Table rename failed (%s -> %s)\n"), oldName, newName);
       return false;
+   }
 
    bool success = false;
    if (CreateTDataTable(id))