From 145370dc596ef4546a81c3dafe64e58c66270066 Mon Sep 17 00:00:00 2001 From: Dmitry Yemanov Date: Tue, 22 Jan 2019 12:31:59 +0300 Subject: [PATCH] Fixed missing monitoring for the crypt thread --- src/jrd/CryptoManager.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/jrd/CryptoManager.cpp b/src/jrd/CryptoManager.cpp index bac317fd0a..1246ac9fee 100644 --- a/src/jrd/CryptoManager.cpp +++ b/src/jrd/CryptoManager.cpp @@ -920,16 +920,22 @@ namespace Jrd { // Establish temp context // Needed to take crypt thread lock UserId user; - user.setUserName("(Crypt thread)"); + user.setUserName("Database Crypter"); Jrd::Attachment* const attachment = Jrd::Attachment::create(&dbb); RefPtr sAtt(FB_NEW SysStableAttachment(attachment)); attachment->setStable(sAtt); attachment->att_filename = dbb.dbb_filename; attachment->att_user = &user; + BackgroundContextHolder tempDbb(&dbb, attachment, &status_vector, FB_FUNCTION); LCK_init(tempDbb, LCK_OWNER_attachment); + PAG_header(tempDbb, true); + PAG_attachment_id(tempDbb); + + Monitoring::publishAttachment(tempDbb); + sAtt->initDone(); // Take exclusive threadLock