File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
couchdb/src/main/java/me/retrodaredevil/couchdbjava/response Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ public DatabaseInfo(
48
48
this .compactRunning = compactRunning ;
49
49
requireNonNull (this .cluster = cluster );
50
50
requireNonNull (this .instanceStartTime = instanceStartTime );
51
- if (!instanceStartTime .equals ("0" )) {
52
- throw new IllegalArgumentException ("The instance_start_time must be 0! It is: " + instanceStartTime );
53
- }
54
51
}
55
52
@ JsonValue
56
53
private String _jacksonValue () {
@@ -97,6 +94,10 @@ public Cluster getCluster() {
97
94
return cluster ;
98
95
}
99
96
97
+ /**
98
+ * Usually "0", but sometimes may be non-zero depending on database version: https://github.com/apache/couchdb/pull/3901
99
+ * @return The database creation time in seconds since the epoch
100
+ */
100
101
public String getInstanceStartTime () {
101
102
return instanceStartTime ;
102
103
}
You can’t perform that action at this time.
0 commit comments