Send lock type in LockWait/LockSharedWait events.

This will be needed for proper construction of LockMap on the server, in
case the LockAnnounce message hasn't arrived yet.
This commit is contained in:
Bartosz Taudul 2017-12-17 18:30:34 +01:00
parent b3b8088881
commit c3a32f9c35
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,7 @@ public:
item->lockWait.id = m_id;
item->lockWait.thread = thread;
item->lockWait.time = Profiler::GetTime();
item->lockWait.type = LockType::Lockable;
tail.store( magic + 1, std::memory_order_release );
}
@ -152,6 +153,7 @@ public:
item->lockWait.id = m_id;
item->lockWait.thread = thread;
item->lockWait.time = Profiler::GetTime();
item->lockWait.type = LockType::SharedLockable;
tail.store( magic + 1, std::memory_order_release );
}
@ -215,6 +217,7 @@ public:
item->lockWait.id = m_id;
item->lockWait.thread = thread;
item->lockWait.time = Profiler::GetTime();
item->lockWait.type = LockType::SharedLockable;
tail.store( magic + 1, std::memory_order_release );
}

View File

@ -101,6 +101,7 @@ struct QueueLockWait
uint32_t id;
int64_t time;
uint64_t thread;
LockType type;
};
struct QueueLockObtain