aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service/pages
diff options
context:
space:
mode:
authorCthulhu <cthulhu@yandex-team.ru>2022-02-10 16:47:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:44 +0300
commitbcb3e9d0eb2a8188a6a9fe0907a8949ce4881a4e (patch)
tree09f7d6526ac5428ea224cd3cf7bd79809d8e6a07 /library/cpp/monlib/service/pages
parent7b82c914c2f468dd50a208ff6a00d38ee7f0018f (diff)
downloadydb-bcb3e9d0eb2a8188a6a9fe0907a8949ce4881a4e.tar.gz
Restoring authorship annotation for Cthulhu <cthulhu@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/service/pages')
-rw-r--r--library/cpp/monlib/service/pages/index_mon_page.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/monlib/service/pages/index_mon_page.cpp b/library/cpp/monlib/service/pages/index_mon_page.cpp
index 83ff8b529a..25832cd111 100644
--- a/library/cpp/monlib/service/pages/index_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/index_mon_page.cpp
@@ -84,14 +84,14 @@ void TIndexMonPage::Register(TMonPagePtr page) {
}
TIndexMonPage* TIndexMonPage::RegisterIndexPage(const TString& path, const TString& title) {
- TGuard<TMutex> g(Mtx);
- TIndexMonPage* page = VerifyDynamicCast<TIndexMonPage*>(FindPage(path));
- if (page) {
- return page;
- }
- page = new TIndexMonPage(path, title);
+ TGuard<TMutex> g(Mtx);
+ TIndexMonPage* page = VerifyDynamicCast<TIndexMonPage*>(FindPage(path));
+ if (page) {
+ return page;
+ }
+ page = new TIndexMonPage(path, title);
Register(page);
- return VerifyDynamicCast<TIndexMonPage*>(page);
+ return VerifyDynamicCast<TIndexMonPage*>(page);
}
IMonPage* TIndexMonPage::FindPage(const TString& relativePath) {