This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new c01fd97416 Fix set storage group typo (#5850)
c01fd97416 is described below
commit c01fd9741699efa4804e3f0e135ec0519b4e60b0
Author: ZhangHongYin <[email protected]>
AuthorDate: Tue May 10 10:27:47 2022 +0800
Fix set storage group typo (#5850)
---
.../iotdb/db/mpp/plan/execution/config/SetStorageGroupTask.java | 6 +++---
.../db/mpp/plan/statement/metadata/SetStorageGroupStatement.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/execution/config/SetStorageGroupTask.java
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/execution/config/SetStorageGroupTask.java
index 8bd63e5b0f..03ce9dcbb1 100644
---
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/execution/config/SetStorageGroupTask.java
+++
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/execution/config/SetStorageGroupTask.java
@@ -86,7 +86,7 @@ public class SetStorageGroupTask implements IConfigTask {
LocalConfigNode localConfigNode = LocalConfigNode.getInstance();
localConfigNode.setStorageGroup(setStorageGroupStatement.getStorageGroupPath());
localConfigNode.setTTL(
- setStorageGroupStatement.getStorageGroupPath(),
setStorageGroupStatement.getTtl());
+ setStorageGroupStatement.getStorageGroupPath(),
setStorageGroupStatement.getTTL());
// schemaReplicationFactor, dataReplicationFactor,
timePartitionInterval are ignored
} catch (MetadataException | IOException e) {
future.setException(e);
@@ -102,8 +102,8 @@ public class SetStorageGroupTask implements IConfigTask {
private TStorageGroupSchema constructStorageGroupSchema() {
TStorageGroupSchema storageGroupSchema = new TStorageGroupSchema();
storageGroupSchema.setName(setStorageGroupStatement.getStorageGroupPath().getFullPath());
- if (setStorageGroupStatement.getTtl() != null) {
- storageGroupSchema.setTTL(setStorageGroupStatement.getTtl());
+ if (setStorageGroupStatement.getTTL() != null) {
+ storageGroupSchema.setTTL(setStorageGroupStatement.getTTL());
}
if (setStorageGroupStatement.getSchemaReplicationFactor() != null) {
storageGroupSchema.setSchemaReplicationFactor(
diff --git
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/metadata/SetStorageGroupStatement.java
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/metadata/SetStorageGroupStatement.java
index 9afdbea821..28e95a0c6b 100644
---
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/metadata/SetStorageGroupStatement.java
+++
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/statement/metadata/SetStorageGroupStatement.java
@@ -82,7 +82,7 @@ public class SetStorageGroupStatement extends Statement
implements IConfigStatem
: Collections.emptyList();
}
- public Long getTtl() {
+ public Long getTTL() {
return ttl;
}