-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.2.0, 3.4.0, 3.5.13
-
Component/s: Shell
-
None
-
ALL
It looks like the shell is using some sort of string comparison for Timestamps that have the same ts but different offset, instead of a numeric comparison:
> Timestamp(1506527690, 11) > Timestamp(1506527690, 9) false > Timestamp(1506527690, 11) >= Timestamp(1506527690, 9) false > Timestamp(1506527690, 11) < Timestamp(1506527690, 9) true > Timestamp(1506527690, 1) < Timestamp(1506527690, 9) true > Timestamp(1506527690, 10) < Timestamp(1506527690, 9) true > Timestamp(1506527690, 100) < Timestamp(1506527690, 9) true > Timestamp(1506527690, 900) < Timestamp(1506527690, 9) false
- duplicates
-
SERVER-21861 Better Timestamp object comparison in mongo shell
- Closed