Patch level : 12.0 nopatch
Files correlati : Commento : Aggiunto stack trace in caso di eccezione nel file stack.log
This commit is contained in:
parent
04e35d8c30
commit
7f062427f4
@ -755,13 +755,18 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
|||||||
pref.ext("");
|
pref.ext("");
|
||||||
while (isdigit(pref[pref.len() - 1]))
|
while (isdigit(pref[pref.len() - 1]))
|
||||||
pref.rtrim(1);
|
pref.rtrim(1);
|
||||||
|
|
||||||
|
int totalTransaction = 0;
|
||||||
|
|
||||||
while (i >= 0)
|
while (i >= 0)
|
||||||
{
|
{
|
||||||
TRACE("Salvataggio registrazione %d", i);
|
TRACE("Salvataggio registrazione %d - %s = %s %s starts with %s", i , (const char*)t.executer(), (const char*)table, (const char*)t.name(), (const char*)pref);
|
||||||
if (t.executer() == table && t.name().starts_with(pref))
|
if (t.executer() == table && t.name().starts_with(pref))
|
||||||
{
|
{
|
||||||
t.write();
|
t.write();
|
||||||
processed.set(i);
|
processed.set(i);
|
||||||
|
totalTransaction++;
|
||||||
|
TRACE("Got it %d", totalTransaction);
|
||||||
}
|
}
|
||||||
i = transactions.succ(i);
|
i = transactions.succ(i);
|
||||||
while (processed[i])
|
while (processed[i])
|
||||||
@ -773,6 +778,8 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
|||||||
TString app;
|
TString app;
|
||||||
|
|
||||||
if (file2app(table, app))
|
if (file2app(table, app))
|
||||||
|
{
|
||||||
|
if (totalTransaction > 0)
|
||||||
{
|
{
|
||||||
TFilename filemask(pref);
|
TFilename filemask(pref);
|
||||||
TString_array files;
|
TString_array files;
|
||||||
@ -784,10 +791,11 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
|||||||
app << " -u" << user();
|
app << " -u" << user();
|
||||||
TExternal_app cmd(app);
|
TExternal_app cmd(app);
|
||||||
|
|
||||||
TRACE("Aggiornamento registrazione %d", i);
|
TRACE("Aggiornamento registrazioni");
|
||||||
cmd.run();
|
cmd.run();
|
||||||
|
TRACE("Fine aggiornamento registrazione");
|
||||||
list_files(filemask, files);
|
list_files(filemask, files);
|
||||||
TRACE("Aggiornamneto log");
|
TRACE("Aggiornamento log");
|
||||||
FOR_EACH_ARRAY_ROW(files, r, str)
|
FOR_EACH_ARRAY_ROW(files, r, str)
|
||||||
{
|
{
|
||||||
TTransaction t(*str);
|
TTransaction t(*str);
|
||||||
@ -808,6 +816,7 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
|||||||
}
|
}
|
||||||
remove_files(filemask, false);
|
remove_files(filemask, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TString msg(TR("Esecutore sconosciuto per le transazioni sul file "));
|
TString msg(TR("Esecutore sconosciuto per le transazioni sul file "));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user