Read from the messages subspace when getting earliest message timestamps

This commit is contained in:
Jon Chambers authored and Chris Eager committed 2026-10-19 14:11:45 -04:00
1 parent 5318ef4562
commit 78ec09cc25
1 file changed
+1 -1
@@ -542,7 +542,7 @@ public class FoundationDbMessageStore {
return getDistinctDatabasesForAci(aci)
.flatMap(database -> Mono.fromFuture(() -> database.readAsync(transaction ->
transaction.getRange(getDeviceSubspace(aci, deviceId).range(), 1).asList(),
transaction.getRange(getDeviceQueueSubspace(aci, deviceId).range(), 1).asList(),
FaultTolerantDatabase.Context.GET_EARLIEST_TIMESTAMP))
.mapNotNull(keyValues -> {
if (keyValues.isEmpty()) {