only global domain will use the v2 domain table
@@ -85,10 +85,13 @@ func (m *metadataManagerProxy) Close() {
}
func (m *metadataManagerProxy) CreateDomain(request *CreateDomainRequest) (*CreateDomainResponse, error) {
- // for new domain, only create in the v2 table
+ if request.IsGlobalDomain {
return m.metadataMgrV2.CreateDomain(request)
}
+ return m.metadataMgr.CreateDomain(request)
+}
+
func (m *metadataManagerProxy) UpdateDomain(request *UpdateDomainRequest) error {
switch request.TableVersion {
case DomainTableVersionV1:
