We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b513d commit dab712fCopy full SHA for dab712f
src/jrd/idx.cpp
@@ -235,6 +235,10 @@ class IndexCreateTask : public Task
235
if (att->att_parallel_workers > 0)
236
workers = att->att_parallel_workers;
237
238
+ // Classic in single-user shutdown mode can't create additional worker attachments
239
+ if ((m_dbb->dbb_ast_flags & DBB_shutdown_single) && !(m_dbb->dbb_flags & DBB_shared))
240
+ workers = 1;
241
+
242
for (int i = 0; i < workers; i++)
243
m_items.add(FB_NEW_POOL(*m_pool) Item(this));
244
@@ -329,7 +333,9 @@ class IndexCreateTask : public Task
329
333
330
334
if (!att)
331
335
{
332
- Arg::Gds(isc_bad_db_handle).copyTo(status);
336
+ if (!status->hasData())
337
+ Arg::Gds(isc_bad_db_handle).copyTo(status);
338
339
return false;
340
}
341
0 commit comments