mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
44f0664d2c
Summary: Depends on D19173. Ref T13096. Adds an optional, disabled-by-default lock log to make it easier to figure out what is acquiring and holding locks. Test Plan: Ran `bin/lock log --enable`, `--disable`, `--name`, etc. Saw sensible-looking output with log enabled and daemons restarted. Saw no additional output with log disabled and daemons restarted. Maniphest Tasks: T13096 Differential Revision: https://secure.phabricator.com/D19174
9 lines
424 B
SQL
9 lines
424 B
SQL
CREATE TABLE {$NAMESPACE}_daemon.daemon_locklog (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
lockName VARCHAR(64) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
lockReleased INT UNSIGNED,
|
|
lockParameters LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT},
|
|
lockContext LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT},
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|