Skip to content

Commit

Permalink
RavenDB-700 fixing compilation after .NET SDK 8.0.400 bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ppekrol authored and arekpalinski committed Aug 27, 2024
1 parent eb1416e commit bb7abde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Raven.Server/Documents/CountersStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2648,13 +2648,13 @@ private static IEnumerable<CounterGroupItemMetadata> TableValueToCounterGroupIte

yield return new CounterGroupItemMetadata(null, null, null, null, null, etag, size);

LazyStringValue CounterGroupKey()
unsafe LazyStringValue CounterGroupKey()
{
var p = tvr.Read((int)CountersTable.CounterKey, out var size);
return context.GetLazyString(p, size);
}

LazyStringValue ExtractDocId()
unsafe LazyStringValue ExtractDocId()
{
var p = tvr.Read((int)CountersTable.CounterKey, out var size);
int sizeOfDocId = 0;
Expand All @@ -2667,14 +2667,14 @@ LazyStringValue ExtractDocId()
return context.GetLazyString(p, sizeOfDocId);
}

IDisposable ToDocumentIdPrefix(LazyStringValue documentId, out Slice documentIdPrefix)
unsafe IDisposable ToDocumentIdPrefix(LazyStringValue documentId, out Slice documentIdPrefix)
{
var p = tvr.Read((int)CountersTable.CounterKey, out _);

return Slice.From(context.Allocator, p, documentId.Size + 1, out documentIdPrefix);
}

IDisposable ToKey(Slice documentIdPrefix, LazyStringValue counterName, out LazyStringValue key)
unsafe IDisposable ToKey(Slice documentIdPrefix, LazyStringValue counterName, out LazyStringValue key)
{
using (DocumentIdWorker.GetLower(context.Allocator, counterName, out var counterNameSlice))
{
Expand All @@ -2686,7 +2686,7 @@ IDisposable ToKey(Slice documentIdPrefix, LazyStringValue counterName, out LazyS
}
}

LazyStringValue ToLuceneKey(LazyStringValue documentId, LazyStringValue counterName)
unsafe LazyStringValue ToLuceneKey(LazyStringValue documentId, LazyStringValue counterName)
{
using (DocumentIdWorker.GetLower(context.Allocator, counterName, out var counterNameSlice))
{
Expand Down

0 comments on commit bb7abde

Please sign in to comment.