Skip to content

Commit

Permalink
Fix for issue 218 writetime and TTL are not preserved
Browse files Browse the repository at this point in the history
Suggested fix for the following issue:
datastax#218
writetime and TTL are not preserved if columns are not explicitly configured in cdm.properties
  • Loading branch information
icaredb authored Nov 15, 2023
1 parent 7d600c1 commit 6523d67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/datastax/cdm/feature/WritetimeTTL.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ public boolean loadProperties(IPropertyHelper propertyHelper) {

isValid = validateProperties();
isEnabled = isValid &&
((null != ttlNames && !ttlNames.isEmpty())
|| (null != writetimeNames && !writetimeNames.isEmpty())
|| customWritetime > 0);
(this.autoWritetimeNames || this.autoTTLNames
|| customWritetime > 0);

isLoaded = true;
return isValid;
Expand Down

0 comments on commit 6523d67

Please sign in to comment.