зеркало из https://github.com/github/vitess-gh.git
Merge pull request #2698 from michael-berlin/hotrow_url
vttablet: Fix mentioned hot row protection debug URL in comments.
This commit is contained in:
Коммит
26a4b33cab
|
@ -152,7 +152,7 @@ func (t *TxSerializer) lockLocked(ctx context.Context, key, table string) (bool,
|
||||||
if q.size > q.max {
|
if q.size > q.max {
|
||||||
q.max = q.size
|
q.max = q.size
|
||||||
}
|
}
|
||||||
// Publish the number of waits at /hotrows.
|
// Publish the number of waits at /debug/hotrows.
|
||||||
t.Record(key)
|
t.Record(key)
|
||||||
if q.size == 2 {
|
if q.size == 2 {
|
||||||
// Include first transaction in the count. (It was not recorded on purpose
|
// Include first transaction in the count. (It was not recorded on purpose
|
||||||
|
|
|
@ -95,7 +95,7 @@ func waitForPending(txs *TxSerializer, key string, i int) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func testHTTPHandler(txs *TxSerializer, count int) error {
|
func testHTTPHandler(txs *TxSerializer, count int) error {
|
||||||
req, err := http.NewRequest("GET", "/hotrows", nil)
|
req, err := http.NewRequest("GET", "/path-is-ignored-in-test", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче