Skip to content

Commit ab23dc4

Browse files
Backport to branch(3) : Introduce TransactionContext in Consensus Commit (#3053)
Co-authored-by: Toshihiro Suzuki <[email protected]>
1 parent 12a80a8 commit ab23dc4

27 files changed

+1377
-1475
lines changed

core/src/main/java/com/scalar/db/common/CoreError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,10 +1070,10 @@ public enum CoreError implements ScalarDbError {
10701070
Category.INTERNAL_ERROR, "0044", "The Upsert operation failed. Details: %s", "", ""),
10711071
JDBC_TRANSACTION_UPDATE_OPERATION_FAILED(
10721072
Category.INTERNAL_ERROR, "0045", "The Update operation failed. Details: %s", "", ""),
1073-
CONSENSUS_COMMIT_HANDLING_BEFORE_PREPARATION_SNAPSHOT_HOOK_FAILED(
1073+
CONSENSUS_COMMIT_HANDLING_BEFORE_PREPARATION_HOOK_FAILED(
10741074
Category.INTERNAL_ERROR,
10751075
"0046",
1076-
"Handling the before-preparation snapshot hook failed. Details: %s",
1076+
"Handling the before-preparation hook failed. Details: %s",
10771077
"",
10781078
""),
10791079
JDBC_TRANSACTION_GETTING_SCANNER_FAILED(
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import java.util.concurrent.Future;
44

5-
public interface BeforePreparationSnapshotHook {
5+
public interface BeforePreparationHook {
66
Future<Void> handle(
7-
TransactionTableMetadataManager transactionTableMetadataManager,
8-
Snapshot.ReadWriteSets readWriteSets);
7+
TransactionTableMetadataManager transactionTableMetadataManager, TransactionContext context);
98
}

0 commit comments

Comments
 (0)