Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6bdaed3

Browse files
kvapkelvich
authored andcommitted
Fix dtmbench for multimaster.
1 parent1f92060 commit6bdaed3

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

‎contrib/multimaster/tests/dtmbench.cpp‎

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -178,25 +178,20 @@ void* writer(void* arg)
178178

179179
voidinitializeDatabase()
180180
{
181-
//for (size_t i = 0; i < cfg.connections.size(); i++) {
182-
//printf("creating extension %lu\n", i);
183-
//try {
184-
//connection conn(cfg.connections[i]);
185-
//work txn(conn);
186-
////exec(txn, "drop extension if exists multimaster");
187-
//exec(txn, "create extension multimaster");
188-
//txn.commit();
189-
//} catch (pqxx_exception const& x) {
190-
//i -= 1;
191-
//continue;
192-
//}
193-
//printf("extension %lu created\n", i);
194-
//}
181+
connectionconn(cfg.connections[0]);
182+
183+
printf("creating extension\n");
184+
{
185+
nontransactiontxn(conn);
186+
exec(txn,"drop extension if exists multimaster");
187+
exec(txn,"create extension multimaster");
188+
txn.commit();
189+
}
190+
printf("extension created\n");
195191

196192
printf("creating table t\n");
197-
connectionconn(cfg.connections[0]);
198193
{
199-
worktxn(conn);
194+
nontransactiontxn(conn);
200195
exec(txn,"drop table if exists t");
201196
exec(txn,"create table t(u int primary key, v int)");
202197
txn.commit();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp