Time Layer for measure the Store methods calls time (#11609)

* Time Layer for measure the Store methods calls time

* Fixing build

* Fixing a formating problem

* Fixing tests

* generating store mocks

* Fixing build

* Updating generated timer layer

* Updating timer layer to the last store interface

* Updating timer layer

* Generating time layer
Этот коммит содержится в:
Jesús Espino
2019-08-01 22:10:58 +02:00
коммит произвёл GitHub
родитель fe9e8a4493
Коммит e4582905ea
11 изменённых файлов: 8283 добавлений и 6 удалений

Просмотреть файл

@@ -6,8 +6,6 @@ package commands
import (
"github.com/mattermost/mattermost-server/app"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/store/sqlstore"
"github.com/spf13/cobra"
)
@@ -38,7 +36,5 @@ func printVersion(a *app.App) {
CommandPrintln("Build Date: " + model.BuildDate)
CommandPrintln("Build Hash: " + model.BuildHash)
CommandPrintln("Build Enterprise Ready: " + model.BuildEnterpriseReady)
if supplier, ok := a.Srv.Store.(*store.LayeredStore).DatabaseLayer.(*sqlstore.SqlSupplier); ok {
CommandPrintln("DB Version: " + supplier.GetCurrentSchemaVersion())
}
CommandPrintln("DB Version: " + a.Srv.Store.GetCurrentSchemaVersion())
}