Browse Source
Merge pull request #99 from jacky-pony/main
translate
pull/104/head
yedf2
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
6 deletions
-
bench/http.go
-
dtmcli/dtmimp/db_special.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 |
|
|
|
|
|
|
|
@ -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": "", |
|
|
|
|