@@ -86,9 +86,9 @@ class MockParticipant : public IDistributedParticipantCallback {
8686// Helper: build a minimal DTM with a temp WAL
8787// ─────────────────────────────────────────────────────────────────────────────
8888
89- static DistributedTransactionManagerConfig makeConfig () {
90- DistributedTransactionManagerConfig cfg;
91- cfg.wal_path = " /tmp/test_grpc_rpc_adapter_wal" ;
89+ static DistributedTxnManagerConfig makeConfig () {
90+ DistributedTxnManagerConfig cfg;
91+ cfg.wal_directory = " /tmp/test_grpc_rpc_adapter_wal" ;
9292 cfg.prepare_timeout = 200ms;
9393 cfg.commit_timeout = 200ms;
9494 return cfg;
@@ -156,7 +156,7 @@ TEST(GrpcRpcAdapterPhase1, VoteCommitOnSuccess) {
156156 auto txn_id = dtm.beginDistributed ({remote});
157157 auto result = dtm.prepareDistributed (txn_id);
158158
159- EXPECT_TRUE (result.ok ()) << result.message () ;
159+ EXPECT_TRUE (result.ok ) << result.message ;
160160
161161 DistributedTransactionManager::clearRpcPhase1Fn ();
162162 DistributedTransactionManager::clearRpcPhase2Fn ();
@@ -180,7 +180,7 @@ TEST(GrpcRpcAdapterPhase1, VoteAbortOnFailure) {
180180 auto txn_id = dtm.beginDistributed ({remote});
181181 auto result = dtm.prepareDistributed (txn_id);
182182
183- EXPECT_FALSE (result.ok () );
183+ EXPECT_FALSE (result.ok );
184184
185185 DistributedTransactionManager::clearRpcPhase1Fn ();
186186 DistributedTransactionManager::clearRpcPhase2Fn ();
@@ -218,7 +218,7 @@ TEST(GrpcRpcAdapterPhase1, VoteAbortOnTimeout) {
218218 // (The exact result depends on thread scheduling; both ok() and !ok() are
219219 // valid because the DTM may or may not have received the vote before its
220220 // internal deadline; what matters is that the transaction is not stuck.)
221- EXPECT_FALSE (result.ok () );
221+ EXPECT_FALSE (result.ok );
222222
223223 DistributedTransactionManager::clearRpcPhase1Fn ();
224224 DistributedTransactionManager::clearRpcPhase2Fn ();
@@ -247,7 +247,7 @@ TEST(GrpcRpcAdapterPhase1, VoteAbortOnNetworkException) {
247247 auto txn_id = dtm.beginDistributed ({remote});
248248 auto result = dtm.prepareDistributed (txn_id);
249249
250- EXPECT_FALSE (result.ok () );
250+ EXPECT_FALSE (result.ok );
251251
252252 DistributedTransactionManager::clearRpcPhase1Fn ();
253253 DistributedTransactionManager::clearRpcPhase2Fn ();
@@ -389,7 +389,7 @@ TEST(GrpcRpcAdapterDtmIntegration, Phase1FnWiredAllCommit) {
389389 auto txn_id = dtm.beginDistributed ({r1, r2});
390390 auto prep = dtm.prepareDistributed (txn_id);
391391
392- EXPECT_TRUE (prep.ok ()) << prep.message () ;
392+ EXPECT_TRUE (prep.ok ) << prep.message ;
393393
394394 DistributedTransactionManager::clearRpcPhase1Fn ();
395395 DistributedTransactionManager::clearRpcPhase2Fn ();
@@ -410,7 +410,7 @@ TEST(GrpcRpcAdapterDtmIntegration, Phase1FnAbortVote) {
410410 auto txn_id = dtm.beginDistributed ({r});
411411 auto prep = dtm.prepareDistributed (txn_id);
412412
413- EXPECT_FALSE (prep.ok () );
413+ EXPECT_FALSE (prep.ok );
414414
415415 DistributedTransactionManager::clearRpcPhase1Fn ();
416416 DistributedTransactionManager::clearRpcPhase2Fn ();
@@ -432,7 +432,7 @@ TEST(GrpcRpcAdapterDtmIntegration, Phase2FnDeliverCommit) {
432432 dtm.prepareDistributed (txn_id);
433433 auto commit = dtm.commitDistributed (txn_id);
434434
435- EXPECT_TRUE (commit.ok ()) << commit.message () ;
435+ EXPECT_TRUE (commit.ok ) << commit.message ;
436436 // Phase-2 fn must have been called with do_commit=true for node s4.
437437 std::lock_guard<std::mutex> lk (rec.mu );
438438 bool found = false ;
@@ -467,9 +467,9 @@ TEST(GrpcRpcAdapterContention, SerialTransactionsDeterminism) {
467467
468468 auto txn_id = dtm.beginDistributed ({r});
469469 auto prep = dtm.prepareDistributed (txn_id);
470- if (prep.ok () ) {
470+ if (prep.ok ) {
471471 auto c = dtm.commitDistributed (txn_id);
472- if (c.ok () ) ++committed;
472+ if (c.ok ) ++committed;
473473 }
474474 }
475475
@@ -505,7 +505,7 @@ TEST(GrpcRpcAdapterWal, CommitDecisionDurableBeforePhase2) {
505505 dtm.prepareDistributed (txn_id);
506506 auto result = dtm.commitDistributed (txn_id);
507507
508- EXPECT_TRUE (result.ok ()) << result.message () ;
508+ EXPECT_TRUE (result.ok ) << result.message ;
509509 // Phase-2 fn should have been invoked.
510510 EXPECT_TRUE (phase2_called.load ());
511511
0 commit comments