MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / SetStorageGroup

Method SetStorageGroup

client/session.go:231–242  ·  view source on GitHub ↗

* *set one storage group *param *storageGroupId: string, storage group name (starts from root) *return *error: correctness of operation */

(storageGroupId string)

Source from the content-addressed store, hash-verified

229 *error: correctness of operation
230 */
231func (s *Session) SetStorageGroup(storageGroupId string) error {
232 r, err := s.client.SetStorageGroup(context.Background(), s.sessionId, storageGroupId)
233 if err != nil && r == nil {
234 if s.reconnect() {
235 r, err = s.client.SetStorageGroup(context.Background(), s.sessionId, storageGroupId)
236 }
237 }
238 if err != nil {
239 return err
240 }
241 return VerifySuccess(r)
242}
243
244/*
245 *delete one storage group

Callers

nothing calls this directly

Calls 3

reconnectMethod · 0.95
VerifySuccessFunction · 0.85
SetStorageGroupMethod · 0.65

Tested by

no test coverage detected