Skip to content
This repository was archived by the owner on Nov 8, 2020. It is now read-only.

Commit 7475bc5

Browse files
committed
Fixed table splitting algorithm.
1 parent 64da32e commit 7475bc5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Ray.Storage.SQLCore/Configuration/StorageOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public async ValueTask<EventSubTable> GetTable(long eventTimestamp)
115115
{
116116
await BuildRepository.CreateEventTable(subTable);
117117
_subTables.Add(subTable);
118+
subTable = _subTables.SingleOrDefault(table => table.StartTime <= eventTimestamp && table.EndTime > eventTimestamp);
118119
}
119120
catch (Exception ex)
120121
{

0 commit comments

Comments
 (0)