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