Commit eda9942
### Rationale for this change
Fix the bug mentioned in #46217 (comment)
### What changes are included in this PR?
* Fix the logic of timestamp modification.
* Extend the test in two_level_cache_with_expiration_test.cc (CleanupPeriodOk).
* Replace the usage of std::make_unique's constructor with std::make_unique().
### Are these changes tested?
Yes. The original test didn't expose the problem because CheckCacheForExpiredTokens was only called once.
### Are there any user-facing changes?
No.
* GitHub Issue: #46217
Lead-authored-by: Eddie Chang <kalcifer7319@gmail.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Antoine Pitrou <pitrou@free.fr>
1 parent 58318ef commit eda9942
2 files changed
Lines changed: 12 additions & 12 deletions
File tree
- cpp/src/parquet/encryption
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
122 | | - | |
| 120 | + | |
123 | 121 | | |
124 | 122 | | |
125 | 123 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 124 | | |
133 | 125 | | |
134 | 126 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
| |||
0 commit comments