File tree 4 files changed +13
-6
lines changed
4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ bool IsVersionedType(EObjectType type)
110
110
type == EObjectType::RootstockMap ||
111
111
type == EObjectType::Scion ||
112
112
type == EObjectType::ScionMap ||
113
- type == EObjectType::ClusterProxyNode;
113
+ type == EObjectType::ClusterProxyNode ||
114
+ type == EObjectType::SequoiaMapNode;
114
115
}
115
116
116
117
bool IsUserType (EObjectType type)
Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ DEFINE_ENUM(EObjectType,
214
214
((AccessControlObjectNamespace) (432 ))
215
215
((AccessControlObjectNamespaceMap) (433 ))
216
216
217
+ // Sequoia nodes
218
+ ((SequoiaMapNode) (1504 ))
219
+
217
220
// Cypress shards
218
221
((CypressShard) (11004 ))
219
222
((CypressShardMap) (11005 ))
Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ bool IsMasterTransactionId(TTransactionId id)
24
24
type == EObjectType::SystemNestedTransaction;
25
25
}
26
26
27
+ bool IsTabletTransactionType (NObjectClient::EObjectType type)
28
+ {
29
+ return type == EObjectType::AtomicTabletTransaction || type == EObjectType::NonAtomicTabletTransaction;
30
+ }
31
+
27
32
void ValidateTabletTransactionId (TTransactionId id)
28
33
{
29
- auto type = TypeFromId (id);
30
- if (type != EObjectType::Transaction &&
31
- type != EObjectType::AtomicTabletTransaction &&
32
- type != EObjectType::NonAtomicTabletTransaction)
33
- {
34
+ if (!IsTabletTransactionType (TypeFromId (id))) {
34
35
THROW_ERROR_EXCEPTION (" %v is not a valid tablet transaction id" ,
35
36
id);
36
37
}
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ struct TReadTimestampRange
26
26
// ! #EObjectType::SytemTransaction or #EObjectType::SystemNestedTransaction.
27
27
bool IsMasterTransactionId (TTransactionId id);
28
28
29
+ bool IsTabletTransactionType (NObjectClient::EObjectType type);
30
+
29
31
// ! Checks if #id represents a valid transaction accepted by tablets:
30
32
// ! the type of #id must be either
31
33
// ! #EObjectType::Transaction, #EObjectType::AtomicTabletTransaction,
You can’t perform that action at this time.
0 commit comments