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 33f5d0b commit 4119f62Copy full SHA for 4119f62
src/jrd/inf.cpp
@@ -634,6 +634,8 @@ void INF_database_info(thread_db* tdbb,
634
}
635
636
{
637
+ StrArray names;
638
+
639
SyncLockGuard sync(&dbb->dbb_sync, SYNC_SHARED, "INF_database_info");
640
641
for (const Jrd::Attachment* att = dbb->dbb_attachments; att; att = att->att_next)
@@ -644,6 +646,13 @@ void INF_database_info(thread_db* tdbb,
644
646
645
647
const char* userName = user->getUserName().hasData() ?
648
user->getUserName().c_str() : "(Firebird Worker Thread)";
649
650
+ FB_SIZE_T pos;
651
+ if (names.find(userName, pos))
652
+ continue;
653
654
+ names.insert(pos, userName);
655
656
p = buffer;
657
const ULONG len = MIN(strlen(userName), MAX_UCHAR);
658
*p++ = static_cast<UCHAR>(len);
0 commit comments