File tree 1 file changed +11
-16
lines changed
contrib/multimaster/tests
1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -178,25 +178,20 @@ void* writer(void* arg)
178
178
179
179
void initializeDatabase ()
180
180
{
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
+ connection conn (cfg.connections [0 ]);
182
+
183
+ printf (" creating extension\n " );
184
+ {
185
+ nontransaction txn (conn);
186
+ exec (txn, " drop extension if exists multimaster" );
187
+ exec (txn, " create extension multimaster" );
188
+ txn.commit ();
189
+ }
190
+ printf (" extension created\n " );
195
191
196
192
printf (" creating table t\n " );
197
- connection conn (cfg.connections [0 ]);
198
193
{
199
- work txn (conn);
194
+ nontransaction txn (conn);
200
195
exec (txn, " drop table if exists t" );
201
196
exec (txn, " create table t(u int primary key, v int)" );
202
197
txn.commit ();
You can’t perform that action at this time.
0 commit comments