Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/alice/exe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ static const TEXT val_errors[] =
int EXE_action(const TEXT* database, const SINT64 switches)
{
bool error = false;
Firebird::AutoMemoryPool newPool(MemoryPool::createPool());
AliceGlobals* tdgbl = AliceGlobals::getSpecific();
{
AliceGlobals* tdgbl = AliceGlobals::getSpecific();
Firebird::AutoMemoryPool newPool(MemoryPool::createPool());
AliceContextPoolHolder context(tdgbl, newPool);

for (USHORT i = 0; i < MAX_VAL_ERRORS; i++)
Expand Down Expand Up @@ -130,6 +130,8 @@ int EXE_action(const TEXT* database, const SINT64 switches)
}
}

tdgbl->uSvc->started();

return error ? FINI_ERROR : FINI_OK;
}

Expand All @@ -141,9 +143,9 @@ int EXE_action(const TEXT* database, const SINT64 switches)
int EXE_two_phase(const TEXT* database, const SINT64 switches)
{
bool error = false;
Firebird::AutoMemoryPool newPool(MemoryPool::createPool());
AliceGlobals* tdgbl = AliceGlobals::getSpecific();
{
AliceGlobals* tdgbl = AliceGlobals::getSpecific();
Firebird::AutoMemoryPool newPool(MemoryPool::createPool());
AliceContextPoolHolder context(tdgbl, newPool);

for (USHORT i = 0; i < MAX_VAL_ERRORS; i++)
Expand All @@ -160,8 +162,6 @@ int EXE_two_phase(const TEXT* database, const SINT64 switches)
isc_attach_database(tdgbl->status, 0, database, &handle,
dpb.getBufferLength(), reinterpret_cast<const SCHAR*>(dpb.getBuffer()));

tdgbl->uSvc->started();

if (tdgbl->status[1])
{
error = true;
Expand All @@ -186,6 +186,8 @@ int EXE_two_phase(const TEXT* database, const SINT64 switches)
}
}

tdgbl->uSvc->started();

return (error ? FINI_ERROR : FINI_OK);
}

Expand Down
Loading