From 9b38131c2852a4e3a0989dada5daa8254eb29266 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 19 Dec 2021 09:10:02 +0800 Subject: [PATCH 1/2] translate --- bench/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/http.go b/bench/http.go index f9a03c7..8a6a470 100644 --- a/bench/http.go +++ b/bench/http.go @@ -21,9 +21,9 @@ import ( "github.com/yedf/dtm/examples" ) -// 启动命令:go run app/main.go qs +// launch command:go run app/main.go qs -// 事务参与者的服务地址 +// service address of the transcation const benchAPI = "/api/busi_bench" const benchPort = 8083 const total = 200000 From ac55013774cee5613ae476be01e96a22337ead97 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 19 Dec 2021 09:14:54 +0800 Subject: [PATCH 2/2] remove func TimestampAdd --- dtmcli/dtmimp/db_special.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dtmcli/dtmimp/db_special.go b/dtmcli/dtmimp/db_special.go index d45f460..b4db7fc 100644 --- a/dtmcli/dtmimp/db_special.go +++ b/dtmcli/dtmimp/db_special.go @@ -41,10 +41,6 @@ func init() { type postgresDBSpecial struct{} -func (*postgresDBSpecial) TimestampAdd(second int) string { - return fmt.Sprintf("current_timestamp + interval '%d second'", second) -} - func (*postgresDBSpecial) GetXaSQL(command string, xid string) string { return map[string]string{ "end": "",