kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | c07d4751c7ddbfdf07a8ccc470fb8c0b9426a9e490fa75709e8eccdb049ce670 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-09-29 14:57 -05:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-09-29 15:47 -07:00 |
| Parents | e0c6a4e0504f |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/TableMetadata.java +8 −2
| @@ -842,7 +842,11 @@ | ||
| 842 | 842 | return false; |
| 843 | 843 | if (defaultTTL != options.defaultTTL) |
| 844 | 844 | return false; |
| 845 | - if (indexInterval != options.indexInterval) | |
| 845 | + if (indexInterval != null ? !indexInterval.equals(options.indexInterval) : options.indexInterval != null) | |
| 846 | + return false; | |
| 847 | + if (minIndexInterval != null ? !minIndexInterval.equals(options.minIndexInterval) : options.minIndexInterval != null) | |
| 848 | + return false; | |
| 849 | + if (maxIndexInterval != null ? !maxIndexInterval.equals(options.maxIndexInterval) : options.maxIndexInterval != null) | |
| 846 | 850 | return false; |
| 847 | 851 | if (comment != null ? !comment.equals(options.comment) : options.comment != null) |
| 848 | 852 | return false; |
| @@ -875,7 +879,9 @@ | ||
| 875 | 879 | result = 31 * result + memtableFlushPeriodMs; |
| 876 | 880 | result = 31 * result + defaultTTL; |
| 877 | 881 | result = 31 * result + (speculativeRetry != null ? speculativeRetry.hashCode() : 0); |
| 878 | - result = 31 * result + indexInterval; | |
| 882 | + result = 31 * result + (indexInterval != null ? indexInterval.hashCode() : 0); | |
| 883 | + result = 31 * result + (minIndexInterval != null ? minIndexInterval.hashCode() : 0); | |
| 884 | + result = 31 * result + (maxIndexInterval != null ? maxIndexInterval.hashCode() : 0); | |
| 879 | 885 | result = 31 * result + (compaction != null ? compaction.hashCode() : 0); |
| 880 | 886 | result = 31 * result + (compression != null ? compression.hashCode() : 0); |
| 881 | 887 | return result; |