smiklosovic commented on a change in pull request #1189:
URL: https://github.com/apache/cassandra/pull/1189#discussion_r709351484
##########
File path: src/java/org/apache/cassandra/service/snapshot/SnapshotManifest.java
##########
@@ -60,13 +60,18 @@ private SnapshotManifest() {
this.expiresAt = null;
}
- public SnapshotManifest(List<String> files, Duration ttl)
+ public SnapshotManifest(List<String> files, Duration ttl, long timestamp)
{
this.files = files;
- this.createdAt = Instant.now();
+ this.createdAt = Instant.ofEpochMilli(timestamp);
this.expiresAt = ttl == null ? null :
createdAt.plusMillis(ttl.toMilliseconds());
}
+ public SnapshotManifest(List<String> files, Duration ttl)
Review comment:
thanks for review @alex-ninja ,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]